• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/systemfield/markingcodegroup.php
  • Класс: BitrixCatalogProductSystemFieldMarkingCodeGroup
  • Вызов: MarkingCodeGroup::getOperationSelectFieldList
static function getOperationSelectFieldList(string $operation): array
{
	if (!static::isAllowed())
	{
		return [];
	}

	$fields = static::getUserFieldBaseParam();
	switch($operation)
	{
		case CatalogProductSystemField::OPERATION_PROVIDER:
		case CatalogProductSystemField::OPERATION_EXPORT:
		case CatalogProductSystemField::OPERATION_IMPORT:
			$result = [
				$fields['XML_ID'] => $fields['FIELD_NAME'],
			];
			break;
		default:
			$result = [];
			break;
	}

	return $result;
}