menu_ui.module

Allows administrators to customize the site's navigation menus.

A menu (in this context) is a hierarchical collection of links, generally used for navigation.

File

core/modules/menu_ui/menu_ui.module

Functions

Name Description
menu_ui_block_view_system_menu_block_alter Implements hook_block_view_BASE_BLOCK_ID_alter() for 'system_menu_block'.
menu_ui_entity_type_build Implements hook_entity_type_build().
menu_ui_form_node_form_alter Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
menu_ui_form_node_form_submit Form submission handler for menu item field on the node form.
menu_ui_form_node_type_form_alter Implements hook_form_FORM_ID_alter() for \Drupal\node\NodeTypeForm.
menu_ui_form_node_type_form_builder Entity builder for the node type form with menu options.
menu_ui_form_node_type_form_validate Submit handler for forms with menu options.
menu_ui_get_menus Return an associative array of the custom menus names.
menu_ui_get_menu_link_defaults Returns the definition for a menu link for the given node.
menu_ui_help Implements hook_help().
menu_ui_menu_delete Implements hook_ENTITY_TYPE_delete() for menu entities.
menu_ui_menu_insert Implements hook_ENTITY_TYPE_insert( for menu entities.
menu_ui_menu_predelete Implements hook_ENTITY_TYPE_predelete() for menu entities.
menu_ui_menu_update Implements hook_ENTITY_TYPE_update() for menu entities.
menu_ui_node_predelete Implements hook_ENTITY_TYPE_predelete() for node entities.
menu_ui_preprocess_block Implements hook_preprocess_HOOK() for block templates.
menu_ui_system_breadcrumb_alter Implements hook_system_breadcrumb_alter().
_menu_ui_node_save Helper function to create or update a menu link for a node.

Constants

Name Description
MENU_MAX_MENU_NAME_LENGTH_UI Maximum length of menu name as entered by the user. Database length is 32 and we add a menu- prefix.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!menu_ui!menu_ui.module/8.1.x