- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/CustomSection/Manager.php
- Класс: BitrixIntranetCustomSectionManager
- Вызов: Manager::compileLeftMenuSectionDescription
protected function compileLeftMenuSectionDescription(CustomSection $customSection): array
{
$availablePages = $this->getAvailablePages($customSection);
$page = $this->getUserSelectedFirstPage($customSection->getCode(), $availablePages);
if (is_null($page))
{
$page = $this->getLastOpenedPage($customSection->getCode(), $availablePages);
}
if (is_null($page))
{
$page = $this->getPageWithMinSort($availablePages);
}
return [
htmlspecialcharsbx($customSection->getTitle()),
$this->getUrlForPage($customSection->getCode(), $page->getCode()),
[
$this->getSectionRootUrl($customSection),
],
[
'menu_item_id' => $this->getCustomSectionMenuId($customSection->getCode()),
'is_custom_section' => true,
'counter_id' => self::buildCustomSectionCounterId($customSection->getModuleId(), $customSection->getId())
],
''
];
}