- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskexpiressoon.php
- Класс: Bitrix\Tasks\Integration\IM\Notification\UseCase\TaskExpiresSoon
- Вызов: TaskExpiresSoon::expiresSoonForResponsible
private function expiresSoonForResponsible(Message $message, TaskObject $task): Notification { $sameCreatorMessagePart = 'SAME_CREATOR_'; $messageKey = ($task->getResponsibleId() === $task->getCreatedBy()) ? "TASKS_TASK_EXPIRED_SOON_RESPONSIBLE_{$sameCreatorMessagePart}MESSAGE" : 'TASKS_TASK_EXPIRED_SOON_RESPONSIBLE_MESSAGE' ; return $this->createNotification($messageKey, $message, $task); }