Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
alerttemplate.php
1<?php
2
4
6{
7 protected const DEFAULT_BORDER_COLOR = '#f4433e';
8
9 public function buildMessage(array $messageFields): array
10 {
11 $attach = new \CIMMessageParamAttach(0, static::DEFAULT_BORDER_COLOR);
12
13 $attach->SetDescription($this->buildDescriptionText());
14
15 $attach->AddUser([
16 'NAME' => $this->messageText,
17 'AVATAR' => '/bitrix/js/im/images/robot/warning.svg',
18 ]);
19
20 $attach->AddMessage($this->buildRobotText());
21
22 $messageFields['ATTACH'] = $attach;
23
24 return $messageFields;
25 }
26}