• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/factory.php
  • Класс: Bitrix\Crm\Automation\Factory
  • Вызов: Factory::isSupported
static function isSupported($entityTypeId)
{
	$isSupported = in_array((int)$entityTypeId, static::getSupportedEntityTypes(), true);
	if (!$isSupported && \CCrmOwnerType::isPossibleDynamicTypeId((int)$entityTypeId))
	{
		$factory = Container::getInstance()->getFactory((int)$entityTypeId);
		$isSupported = $factory && $factory->isAutomationEnabled();
	}

	return $isSupported;
}