• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/widget/formhandler.php
  • Класс: BitrixImOpenLinesWidgetFormHandler
  • Вызов: FormHandler::prepareChatTitle
private function prepareChatTitle(): string
{
	$title = '';

	if ($this->crmFields['FIRST_NAME'] || $this->crmFields['LAST_NAME'])
	{
		$titleParams = $this->chat->getTitle(
			$this->config['LINE_NAME'],
			trim($this->crmFields['FIRST_NAME'] . ' ' . $this->crmFields['LAST_NAME'])
		);
		$title = $titleParams['TITLE'];
	}

	return $title;
}