• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/LogMessage/SmsStatus.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\LogMessage\SmsStatus
  • Вызов: SmsStatus::getTags
public function getTags(): ?array
{
	$status = $this->getStatus();
	// render tags to FAILURE codes only
	if ($status !== BaseMessage::MESSAGE_FAILURE)
	{
		return null;
	}

	$statusTag = new Tag(Loc::getMessage('CRM_TIMELINE_LOG_TAG_SENDING_ERROR'), Tag::TYPE_FAILURE);

	$errorText = $this->isSmsChannel
		? ($this->messageInfo['errorText'] ?? '')
		: ($this->messageInfo['ERROR_MESSAGE'] ?? '');

	if (!empty($errorText))
	{
		$statusTag->setHint($errorText);
	}

	return [
		'status' => $statusTag,
	];
}