- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/useroption.php
- Класс: BitrixTasksInternalsUserOption
- Вызов: UserOption::sendPushOptionChanged
static function sendPushOptionChanged(int $taskId, int $userId, int $option, bool $added): void
{
PushService::addEvent([$userId], [
'module_id' => 'tasks',
'command' => PushCommand::USER_OPTION_UPDATED,
'params' => [
'TASK_ID' => $taskId,
'USER_ID' => $userId,
'OPTION' => $option,
'ADDED' => $added,
],
]);
}