• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/config/state.php
  • Класс: BitrixCatalogConfigState
  • Вызов: State::getExceedingProductLimit
static function getExceedingProductLimit(int $iblockId, ?int $sectionId = null): ?array
{
	if ($iblockId <= 0)
	{
		return null;
	}

	if (!ModuleManager::isModuleInstalled('bitrix24'))
	{
		return null;
	}

	if ($iblockId !== self::getCrmCatalogId())
	{
		return null;
	}

	$result = self::checkIblockLimit($iblockId);
	if ($result !== null && $sectionId !== null)
	{
		self::loadIblockSections($iblockId);
		if (!isset(self::$fullIblockSections[$sectionId]))
		{
			$result = null;
		}
	}
	if ($result === null)
	{
		$result = self::getCrmCatalogLimit($iblockId);
	}

	return $result;
}