• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/binding/menu.php
  • Класс: BitrixIntranetBindingMenu
  • Вызов: Menu::getRestMap
static function getRestMap(): array
{
	$map = [];

	foreach (static::getMapObject()->getSections() as $section)
	{
		$restPlacements = [];
		foreach ($section->getItems() as $item)
		{
			$restPlacements[static::getRestPlacementCode($section, $item)] = [];
		}

		$otherPlacementsInScope = $map[$section->getScope()] ?? null;
		if (is_array($otherPlacementsInScope))
		{
			$restPlacements = array_merge($otherPlacementsInScope, $restPlacements);
		}

		$map[$section->getScope()] = $restPlacements;
	}

	return $map;
}