• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/Activity/Call.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\Activity\Call
  • Вызов: Call::getDeleteConfirmationText
protected function getDeleteConfirmationText(): string
{
	$title = $this->getAssociatedEntityModel()->get('SUBJECT') ?? '';

	switch ($this->fetchDirection())
	{
		case CCrmActivityDirection::Incoming:
			return Loc::getMessage('CRM_TIMELINE_INCOMING_CALL_DELETION_CONFIRM', ['#TITLE#' => $title]);
		case CCrmActivityDirection::Outgoing:
			return Loc::getMessage('CRM_TIMELINE_OUTGOING_CALL_DELETION_CONFIRM', ['#TITLE#' => $title]);
	}

	return parent::getDeleteConfirmationText();
}