• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/itemexport.php
  • Класс: Bitrix\Crm\Controller\ItemExport
  • Вызов: ItemExport::checkCommonErrors
protected function checkCommonErrors($action): bool
{
	parent::checkCommonErrors($action);

	$this->entityTypeId = (int)$this->entityTypeId;
	$factory = Container::getInstance()->getFactory($this->entityTypeId);
	if (!$factory)
	{
		$this->addError(new Error('EntityTypeId is not valid.'));
	}

	return count($this->getErrors()) === 0;
}