public function renderCheeseburgerMenuBlock::getAllMenuLinkId in Cheeseburger Menu 8
Same name and namespace in other branches
- 8.2 src/Controller/RenderCheeseburgerMenuBlock.php \Drupal\cheeseburger_menu\Controller\RenderCheeseburgerMenuBlock::getAllMenuLinkId()
- 8.3 src/Controller/RenderCheeseburgerMenuBlock.php \Drupal\cheeseburger_menu\Controller\RenderCheeseburgerMenuBlock::getAllMenuLinkId()
Return value
all menu translated id
1 call to renderCheeseburgerMenuBlock::getAllMenuLinkId()
- renderCheeseburgerMenuBlock::render_tree in src/
Controller/ renderCheeseburgerMenuBlock.php
File
- src/
Controller/ renderCheeseburgerMenuBlock.php, line 449
Class
Namespace
Drupal\cheeseburger_menu\ControllerCode
public function getAllMenuLinkId() {
$all_menus = Menu::loadMultiple();
$menus = [];
foreach ($all_menus as $id => $menu) {
$menus[$menu
->label()] = $id;
}
asort($menus);
return $menus;
}