• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/panel/groupaction.php
  • Класс: BitrixIblockGridPanelGroupAction
  • Вызов: GroupAction::getSections
protected function getSections(bool $addTop = false): array
{
	$this->loadSections();
	$result = $this->sections;
	if ($addTop)
	{
		$result = array_merge(
			[
				[
					'NAME' => Loc::getMessage('IBLOCK_GRID_PANEL_ACTION_MESS_SECTION_TOP_LEVEL'),
					'VALUE' => '0',
				],
			],
			$result
		);
	}
	return $result;
}