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

	return $result;
}