• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/tasknotifications.php
  • Класс: CTaskNotifications
  • Вызов: CTaskNotifications::makePushMessage
static function makePushMessage($messageCode, $userId, array $taskData)
{
	$messageCode = self::getGenderMessage($userId, $messageCode.'_PUSH');
	$user = self::getUser($userId);
	$taskName = self::formatTaskName($taskData['ID'], $taskData['TITLE'], ($taskData['GROUP_ID'] ?? 0), false);

	return CTaskNotifications::cropMessage($messageCode, array(
		'USER_NAME' => CUser::FormatName(CSite::GetNameFormat(false), $user),
		'TASK_TITLE' => $taskName
	), CTaskNotifications::PUSH_MESSAGE_MAX_LENGTH);
}