- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/product/propertycatalogfeature.php
- Класс: BitrixCatalogProductPropertyCatalogFeature
- Вызов: PropertyCatalogFeature::handlerPropertyFeatureBuildList
static function handlerPropertyFeatureBuildList(MainEvent $event): MainEventResult
{
$list = [];
$property = $event->getParameter('property');
$description = $event->getParameter('description');
if (self::checkBasketProperty($property, $description))
{
$list[] = [
'MODULE_ID' => 'catalog',
'FEATURE_ID' => self::FEATURE_ID_BASKET_PROPERTY,
'FEATURE_NAME' => Loc::getMessage('PROPERTY_CATALOG_FEATURE_NAME_BASKET_PROPERTY')
];
}
if (self::checkOfferTreeProperty($property, $description))
{
$list[] = [
'MODULE_ID' => 'catalog',
'FEATURE_ID' => self::FEATURE_ID_OFFER_TREE_PROPERTY,
'FEATURE_NAME' => Loc::getMessage('PROPERTY_CATALOG_FEATURE_NAME_SKU_TREE_PROPERTY')
];
}
unset($description, $property);
return new MainEventResult(MainEventResult::SUCCESS, $list);
}