Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
producttypefieldassembler.php
1<?php
2
4
8
10{
14 protected function getNames(): array
15 {
17 }
18
22 protected function prepareRow(array $row): array
23 {
24 $row = parent::prepareRow($row);
25
26 $bundle = $row['data']['BUNDLE'] ?? null;
27 if ($bundle === 'Y')
28 {
29 $row['columns']['TYPE'] = Loc::getMessage('CATALOG_GRID_ROW_ASSEMBLER_PRODUCT_TYPE_BUNDLE_NAME', [
30 '#TYPE#' => $row['columns']['TYPE'],
31 ]);
32
33 return $row;
34 }
35
36 return $row;
37 }
38}
static getProductTypes($descr=false)
Definition product.php:824
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29