• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/base.php
  • Класс: Bitrix\Crm\Component\Base
  • Вызов: Base::getEntityTypeIdFromParams
protected function getEntityTypeIdFromParams(): int
{
	$entityTypeId = 0;
	if (isset($this->arParams['entityTypeId']) && $this->arParams['entityTypeId'] >= 0)
	{
		$entityTypeId = (int)$this->arParams['entityTypeId'];
	}
	elseif (isset($this->arParams['ENTITY_TYPE_ID']) && $this->arParams['ENTITY_TYPE_ID'] >= 0)
	{
		$entityTypeId = (int)$this->arParams['ENTITY_TYPE_ID'];
	}

	return $entityTypeId;
}