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