• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/LogMessage/Modification.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\LogMessage\Modification
  • Вызов: Modification::getInfoHelper
public function getInfoHelper(): ?InfoHelper
{
	$modifiedField = $this->getHistoryItemModel()->get('MODIFIED_FIELD');

	if ($modifiedField === Item::FIELD_NAME_IS_MANUAL_OPPORTUNITY)
	{
		$finalValue = $this->getHistoryItemModel()->get('FINISH');
		$phrase = $finalValue === 'Y'
			? 'CRM_TIMELINE_LOG_MODIFICATION_IS_MANUAL_OPPORTUNITY_Y'
			: 'CRM_TIMELINE_LOG_MODIFICATION_IS_MANUAL_OPPORTUNITY_N';

		$action = (new JsEvent('Helpdesk:Open'))
			->addActionParamString('articleCode', '11732044');

		return (new InfoHelper())
			->setIconCode(InfoHelper::ICON_AUTO_SUM)
			->setPrimaryAction($action)
			->addText(new InfoHelperText(Loc::getMessage($phrase) . ' '))
			->addLink(new InfoHelperLink(
				Loc::getMessage('CRM_TIMELINE_LOG_MODIFICATION_READ_MORE'),
				$action
			));
	}

	return null;
}