• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskexpired.php
  • Класс: Bitrix\Tasks\Integration\IM\Notification\UseCase\TaskExpired
  • Вызов: TaskExpired::expiredForResponsible
private function expiredForResponsible(Message $message, TaskObject $task): Notification
{
	$sameCreatorMessagePart = 'SAME_CREATOR_';

	$messageKey = ($task->getResponsibleId() === $task->getCreatedBy())
		? "TASKS_TASK_EXPIRED_RESPONSIBLE_{$sameCreatorMessagePart}MESSAGE"
		: 'TASKS_TASK_EXPIRED_RESPONSIBLE_MESSAGE'
	;

	return $this->createNotification($messageKey, $message, $task);
}