32 if (!self::isElementRow($row))
38 if (empty($columnIds))
43 $row[
'columns'] ??= [];
45 $columnToPropertyIds = ElementPropertyProvider::getPropertyIdsFromColumnsIds($columnIds);
46 foreach ($columnToPropertyIds as $columnId => $propertyId)
49 $value = $this->
getColumnValues($row[
'data'][$columnId] ??
null,
'VALUE_ENUM_ID');
50 Main\Type\Collection::normalizeArrayValuesByInt($value,
false);
53 $row[
'data'][
'~' . $columnId] = $value;
57 $row[
'data'][
'~' . $columnId] = empty($value) ?
'' : reset($value);
61 $value = $this->
getColumnValues($row[
'data'][$columnId] ??
null,
'VALUE');
65 $viewValue = join(
' / ', $value);
67 $viewValue = Main\Text\HtmlFilter::encode($viewValue);
68 $row[
'columns'][$columnId] ??= $viewValue;