• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Timeline/Item/LogMessage/Modification.php
  • Класс: Bitrix\Crm\Service\Timeline\Item\LogMessage\Modification
  • Вызов: Modification::getIconCode
public function getIconCode(): ?string
{
	if (in_array(
		$this->getModel()->getAssociatedEntityTypeId(),
		[
			\CCrmOwnerType::Order,
			\CCrmOwnerType::OrderShipment,
			\CCrmOwnerType::OrderPayment,
		],
		true
	))
	{
		return Icon::STORE;
	}
	

	$modifiedField = $this->getHistoryItemModel()->get('MODIFIED_FIELD');
	switch ($modifiedField)
	{
		case 'STATUS_ID':
		case 'STATUS':
		case 'TASK:STATUS':
		case Item::FIELD_NAME_STAGE_ID:
			return Icon::STAGE_CHANGE;
		case Item::FIELD_NAME_IS_MANUAL_OPPORTUNITY:
			return Icon::SUM;
		case Item::FIELD_NAME_CATEGORY_ID:
			return Icon::PIPELINE;
	}

	return parent::getIconCode();
}