menu.inc

Same filename in other branches
  1. 7.x includes/menu.inc
  2. 8.9.x core/includes/menu.inc

API for the Drupal menu system.

File

core/includes/menu.inc

View source
<?php


/**
 * @file
 * API for the Drupal menu system.
 */

/**
 * @addtogroup menu
 * @{
 */

/**
 * Returns an array containing the names of system-defined (default) menus.
 *
 * @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use
 *   \Drupal\system\Entity\Menu::loadMultiple() instead.
 *
 * @see https://www.drupal.org/node/3027453
 */
function menu_list_system_menus() {
    @trigger_error(__FUNCTION__ . '() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \\Drupal\\system\\Entity\\Menu::loadMultiple() instead. See https://www.drupal.org/node/3027453', E_USER_DEPRECATED);
    return [
        'tools' => 'Tools',
        'admin' => 'Administration',
        'account' => 'User account menu',
        'main' => 'Main navigation',
        'footer' => 'Footer menu',
    ];
}

/**
 * @} End of "addtogroup menu".
 */

Functions

Title Deprecated Summary
menu_list_system_menus

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.