You are here

function menu_list_system_menus in Drupal 8

Same name and namespace in other branches
  1. 6 includes/menu.inc \menu_list_system_menus()
  2. 7 includes/menu.inc \menu_list_system_menus()
  3. 9 core/includes/menu.inc \menu_list_system_menus()

Returns an array containing the names of system-defined (default) menus.

Related topics

2 calls to menu_list_system_menus()
menu_ui_get_menus in core/modules/menu_ui/menu_ui.module
Return an associative array of the custom menus names.
WizardPluginBase::buildForm in core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
Form callback to build other elements in the "show" form.

File

core/includes/menu.inc, line 84
API for the Drupal menu system.

Code

function menu_list_system_menus() {
  return [
    'tools' => 'Tools',
    'admin' => 'Administration',
    'account' => 'User account menu',
    'main' => 'Main navigation',
    'footer' => 'Footer menu',
  ];
}