• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/row/assembler/sectionnamefieldassembler.php
  • Класс: BitrixIblockGridRowAssemblerSectionNameFieldAssembler
  • Вызов: SectionNameFieldAssembler::prepareRow
protected function prepareRow(array $row): array
{
	$rowType = $row['data']['ROW_TYPE'] ?? null;
	if ($rowType !== RowType::SECTION)
	{
		return $row;
	}

	$sectionId = (int)($row['data']['ID'] ?? 0);
	$sectionName = (string)($row['data']['NAME'] ?? '');
	if ($sectionId > 0 && !empty($sectionName))
	{
		$prefix = '';
		$name = '' . htmlspecialcharsbx($sectionName) . '';

		if (isset($this->urlBuilder))
		{
			$link = new Uri($this->urlBuilder->getSectionListUrl($sectionId));

			$columnValue =
				''
				. $prefix
				. $name
				. ''
			;
		}
		else
		{
			$columnValue =
				'
' . $prefix . $name . '
' ; } $row['columns'] ??= []; foreach ($this->getColumnIds() as $columnId) { $row['columns'][$columnId] = $columnValue; } } return $row; }