Menu::$id

The menu machine name. Type: string File core/modules/system/src/Entity/Menu.php, line 37 Class Menu Defines the Menu configuration entity class. Namespace Drupal\system\Entity Code protected $id;

Menu::$description

The menu description. Type: string File core/modules/system/src/Entity/Menu.php, line 51 Class Menu Defines the Menu configuration entity class. Namespace Drupal\system\Entity Code protected $description;

menu.inc

API for the Drupal menu system. File core/includes/menu.inc Functions Name Description menu_cache_clear_all Clears all cached menu data. menu_list_system_menus Returns an array containing the names of system-defined (default) menus. menu_local_tabs Returns a renderable element for the primary and secondary tabs. menu_local_tasks Deprecated Collects the local tasks (tabs) for the current route. menu_primary_local_tasks Deprecated Returns the rendered local tasks at the

menu.html.twig

Default theme implementation to display a menu. Available variables: menu_name: The machine name of the menu. items: A nested list of menu items. Each menu item contains: attributes: HTML attributes for the menu item. below: The menu item child items. title: The menu link title. url: The menu link url, instance of \Drupal\Core\Url localized_options: Menu link localized options. is_expanded: TRUE if the link has visible children within the current menu tree. is_collapsed: TRUE if the l

menu-local-tasks.html.twig

Default theme implementation to display primary and secondary local tasks. Available variables: primary: HTML list items representing primary tasks. secondary: HTML list items representing primary tasks. Each item in these variables (primary and secondary) can be individually themed in menu-local-task.html.twig. File core/modules/system/templates/menu-local-tasks.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

menu-local-task.html.twig

Default theme implementation for a local task link. Available variables: attributes: HTML attributes for the wrapper element. is_active: Whether the task item is an active tab. link: A rendered link element. Note: This template renders the content for each task item in menu-local-tasks.html.twig. See also template_preprocess_menu_local_task() File core/modules/system/templates/menu-local-task.html.twig Related topics Theme system overview Functions and templates for the user interface

menu-local-action.html.twig

Default theme implementation for a single local action link. Available variables: attributes: HTML attributes for the wrapper element. link: A rendered link element. See also template_preprocess_menu_local_action() File core/modules/system/templates/menu-local-action.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

menu--toolbar.html.twig

Default theme implementation to display a toolbar menu. Available variables: menu_name: The machine name of the menu. items: A nested list of menu items. Each menu item contains: attributes: HTML attributes for the menu item. below: The menu item child items. title: The menu link title. url: The menu link url, instance of \Drupal\Core\Url localized_options: Menu link localized options. is_expanded: TRUE if the link has visible children within the current menu tree. is_collapsed: TRUE

Menu system

Define the navigation menus, local actions and tasks, and contextual links. Overview and terminology The menu system uses routes; see the Routing API topic for more information. It is used for navigation menus, local tasks, local actions, and contextual links: Navigation menus are hierarchies of menu links; links point to routes or URLs. Menu links and their hierarchies can be defined by Drupal subsystems and modules, or created in the user interface using the Menu UI module. Local tasks are gr

Menu

Defines the Menu configuration entity class. Plugin annotation @ConfigEntityType( id = "menu", label = @Translation("Menu"), handlers = { "access" = "Drupal\system\MenuAccessControlHandler" }, admin_permission = "administer menu", entity_keys = { "id" = "id", "label" = "label" }, config_export = { "id", "label", "description", "locked", } ) Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait,