Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
MailType.php
1<?php
2
4
7
8class MailType extends EntityLink
9{
10 protected const HAS_URL = true;
11
12 protected function getUrl(): string
13 {
14 if (!Loader::includeModule('mail'))
15 {
16 return '';
17 }
18
19 return \Bitrix\Mail\Integration\Intranet\Secretary::getMessageUrlForChat((int)$this->entityId, $this->chatId) ?? '';
20 }
21}