- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/task/link.php
- Класс: BitrixTasksIntegrationIMNotificationTaskLink
- Вызов: Link::placeLinkAnchor
public function placeLinkAnchor(string $message): string
{
$url = $this->getUrl();
if($this->mode === self::MODE_BBCODE && !empty($url))
{
return str_replace(
[
'#TASK_URL_BEGIN#',
'#URL_END#'
],
[
'[URL=' . $url . ']',
'[/URL]'
],
$message
);
}
$message = str_replace(
[
'#TASK_URL_BEGIN#',
'#URL_END#'
],
[
'',
''
],
$message
);
if($this->mode === self::MODE_EMAIL && !empty($url))
{
$message .= ' #BR# ' . Loc::getMessage('TASKS_MESSAGE_LINK_GENERAL', null, $this->recepient->getLang()) . ': ' . $url; // #BR# will be converted to n by IM
}
return $message;
}