• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/OpenLine.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\OpenLine
  • Вызов: OpenLine::getButtons
public function getButtons(): array
{
	$openChatAction = $this->getOpenChatAction();
	if (!$openChatAction)
	{
		return [];
	}

	return [
		'openChat' => (
			new Button(
				Loc::getMessage($this->isScheduled() ? 'CRM_TIMELINE_BUTTON_OPEN_CHAT_MSGVER_1' : 'CRM_TIMELINE_BUTTON_SEE_CHAT'),
				$this->isScheduled() ? Button::TYPE_PRIMARY : Button::TYPE_SECONDARY
			)
		)->setAction($openChatAction)
	];
}