• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskpingsent.php
  • Класс: BitrixTasksIntegrationIMNotificationUseCaseTaskPingSent
  • Вызов: TaskPingSent::getNotification
public function getNotification(Message $message): ?Notification
{
	$task = $message->getMetaData()->getTask();

	if ($task === null)
	{
		return null;
	}

	$title = new NotificationTaskTitle($task);
	$locKey = 'TASKS_TASK_PINGED_STATUS_MESSAGE';

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

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

	return $notification;
}