• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/systemfield/productmapping.php
  • Класс: BitrixCatalogProductSystemFieldProductMapping
  • Вызов: ProductMapping::getGridActionConfig
static function getGridActionConfig(ProductGroupAction $panel): ?array
{
	$catalog = $panel->getCatalogConfig();
	if (empty($catalog))
	{
		return null;
	}
	if (
		$catalog['CATALOG_TYPE'] !== CCatalogSku::TYPE_CATALOG
		&& $catalog['CATALOG_TYPE'] !== CCatalogSku::TYPE_FULL
		&& $catalog['CATALOG_TYPE'] !== CCatalogSku::TYPE_PRODUCT
	)
	{
		return null;
	}

	$field = static::load();
	if (empty($field))
	{
		return null;
	}

	$config = [
		'USER_FIELD' => $field,
	];
	$config['VISUAL'] = [
		'LIST' => [
			'ID' => $panel->getFormRowFieldId($field['FIELD_NAME']),
			'NAME' => $panel->getFormRowFieldName($field['FIELD_NAME']),
		]
	];

	return $config;
}