• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/config/state.php
  • Класс: BitrixCatalogConfigState
  • Вызов: State::getIblockLimit
static function getIblockLimit(int $iblockId): array
{
	$result = [
		'COUNT' => 0,
		'LIMIT' => Feature::getLandingProductLimit(),
		'MESSAGE_ID' => 'CATALOG_STATE_ERR_PRODUCT_LIMIT_1'
	];
	if ($result['LIMIT'] === 0)
	{
		return $result;
	}
	$result['COUNT'] = self::getElementCount($iblockId);

	return $result;
}