• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/conversion/entityconversionconfig.php
  • Класс: Bitrix\Crm\Conversion\EntityConversionConfig
  • Вызов: EntityConversionConfig::getCurrentSchemeIDImplementation
static function getCurrentSchemeIDImplementation(): int
{
	$config = static::load();
	if($config === null)
	{
		$config = static::getDefault();
	}

	$schemeID = $config->getSchemeID();

	$schemeClass = ConversionManager::getSchemeClass(static::getEntityTypeId());
	if (is_null($schemeClass))
	{
		throw new ObjectNotFoundException("Can't find a scheme class for entityTypeId = ".static::getEntityTypeId());
	}

	if($schemeID === $schemeClass::UNDEFINED)
	{
		$schemeID = $schemeClass::getDefault();
	}

	return $schemeID;
}