ProductTypeFieldAssembler::prepareRow

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. ProductTypeFieldAssembler
  4. prepareRow
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/grid/row/assembler/producttypefieldassembler.php
  • Класс: BitrixCatalogGridRowAssemblerProductTypeFieldAssembler
  • Вызов: ProductTypeFieldAssembler::prepareRow
protected function prepareRow(array $row): array
{
	$row = parent::prepareRow($row);

	$bundle = $row['data']['BUNDLE'] ?? null;
	if ($bundle === 'Y')
	{
		$row['columns']['TYPE'] = Loc::getMessage('CATALOG_GRID_ROW_ASSEMBLER_PRODUCT_TYPE_BUNDLE_NAME', [
			'#TYPE#' => $row['columns']['TYPE'],
		]);

		return $row;
	}

	return $row;
}

Добавить комментарий