- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/counter/lighter/pushnotification.php
- Класс: Bitrix\Crm\Counter\Lighter\PushNotification
- Вызов: PushNotification::notifyKanban
public function notifyKanban(array $entitiesInfo): void
{
foreach ($entitiesInfo as $item)
{
$entityTypeName = CCrmOwnerType::ResolveName($item['OWNER_TYPE_ID']);
$kanbanEntity = Kanban\Entity::getInstance($entityTypeName);
if (!$kanbanEntity)
{
continue;
}
$ownerId = $item['OWNER_ID'];
$categoryId = $item['CATEGORY_ID'];
$this->pullManager->sendItemUpdatedEvent(
[
'id'=> $ownerId,
'data' => []
],
[
'TYPE' => $entityTypeName,
'SKIP_CURRENT_USER' => false,
'CATEGORY_ID' => $categoryId,
'IGNORE_DELAY' => true,
],
);
}
}