• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/filter/factorysupportscategories.php
  • Класс: Bitrix\Crm\Controller\Filter\FactorySupportsCategories
  • Вызов: FactorySupportsCategories::onBeforeAction
public function onBeforeAction(Event $event)
{
	$factory = $this->tryGetFactoryFromController() ?? $this->tryGetFactoryFromRequest();

	if (!$factory || !$factory->isCategoriesSupported())
	{
		$entityTypeId = $factory ? $factory->getEntityTypeId() : null;

		$this->addError(ErrorCode::getEntityTypeNotSupportedError($entityTypeId));
	}

	return new EventResult(
		$this->errorCollection->isEmpty() ? EventResult::SUCCESS : EventResult::ERROR,
		null,
		null,
		$this
	);
}