• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Integration/Iblock/BrandProperty.php
  • Класс: BitrixCatalogv2IntegrationIblockBrandProperty
  • Вызов: BrandProperty::createProperty
static function createProperty(int $iblockId): ?int
{
	$highloadBlockTable = self::createHighloadBlockTable();
	if (!$highloadBlockTable)
	{
		return null;
	}

	$propertyDescription = self::getPropertyDescription($iblockId, $highloadBlockTable);
	$propertyId = (new CIBlockProperty())->Add($propertyDescription);

	return (int)$propertyId ?: null;
}