• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskexpired.php
  • Класс: BitrixTasksIntegrationIMNotificationUseCaseTaskExpired
  • Вызов: TaskExpired::createNotification
private function createNotification(string $locKey, Message $message, TaskObject $task): Notification
{
	$title = new NotificationTaskTitle($task);

	$notification = new Notification(
		$locKey,
		$message
	);

	$notification->setParams(['action' => 'TASK_EXPIRED']);

	$notification->addTemplate(
		new NotificationTemplate(
			'#TASK_TITLE#',
			$title->getFormatted($message->getRecepient()->getLang())
		)
	);

	return $notification;
}