- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/Site/Sections/TimemanSection.php
- Класс: BitrixIntranetSiteSectionsTimemanSection
- Вызов: TimemanSection::getRootMenuItem
static function getRootMenuItem(): array
{
$extraUrls = [];
foreach (static::getItems() as $item)
{
if ($item['available'])
{
if (isset($item['url']) && is_string($item['url']))
{
$extraUrls[] = $item['url'];
}
if (isset($item['extraUrls']) && is_array($item['extraUrls']))
{
$extraUrls = array_merge($extraUrls, $item['extraUrls']);
}
}
}
return [
Loc::getMessage('TIMEMAN_SECTION_ROOT_ITEM_TITLE'),
static::getPath(),
$extraUrls,
[
'menu_item_id' => 'menu_timeman',
],
'',
];
}