FactorySupportsCategories::tryGetFactoryFromRequest

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. FactorySupportsCategories
  4. tryGetFactoryFromRequest
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/filter/factorysupportscategories.php
  • Класс: Bitrix\Crm\Controller\Filter\FactorySupportsCategories
  • Вызов: FactorySupportsCategories::tryGetFactoryFromRequest
protected function tryGetFactoryFromRequest(): ?\Bitrix\Crm\Service\Factory
{
	$entityTypeId = $this->getAction()->getController()->getRequest()->get('entityTypeId') ?? 0;

	return Container::getInstance()->getFactory($entityTypeId);
}

Добавить комментарий