• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Integration/Iblock/BrandProperty.php
  • Класс: BitrixCatalogv2IntegrationIblockBrandProperty
  • Вызов: BrandProperty::loadProperty
static function loadProperty(int $iblockId): ?int
{
	$property = PropertyTable::getList([
		'select' => ['ID'],
		'filter' => [
			'=IBLOCK_ID' => $iblockId,
			'=CODE' => self::PROPERTY_CODE,
			'=ACTIVE' => 'Y',
		],
	])
		->fetch()
	;
	if (!empty($property))
	{
		return (int)$property['ID'];
	}

	return null;
}