menu_ui_system_breadcrumb_alter

menu_ui_system_breadcrumb_alter(Breadcrumb &$breadcrumb, RouteMatchInterface $route_match, array $context) Implements hook_system_breadcrumb_alter(). File core/modules/menu_ui/menu_ui.module, line 504 Allows administrators to customize the site's navigation menus. Code function menu_ui_system_breadcrumb_alter(Breadcrumb &$breadcrumb, RouteMatchInterface $route_match, array $context) { // Custom breadcrumb behavior for editing menu links, we append a link to // the menu in which th

menu_ui_preprocess_block

menu_ui_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/menu_ui/menu_ui.module, line 494 Allows administrators to customize the site's navigation menus. Code function menu_ui_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'menu_ui') { $variables['attributes']['role'] = 'navigation'; } }

menu_ui_node_predelete

menu_ui_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. File core/modules/menu_ui/menu_ui.module, line 169 Allows administrators to customize the site's navigation menus. Code function menu_ui_node_predelete(EntityInterface $node) { // Delete all MenuLinkContent links that point to this node. /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); $resu

menu_ui_menu_update

menu_ui_menu_update(Menu $menu) Implements hook_ENTITY_TYPE_update() for menu entities. File core/modules/menu_ui/menu_ui.module, line 87 Allows administrators to customize the site's navigation menus. Code function menu_ui_menu_update(Menu $menu) { menu_cache_clear_all(); // Invalidate the block cache to update menu-based derivatives. if (\Drupal::moduleHandler()->moduleExists('block')) { \Drupal::service('plugin.manager.block')->clearCachedDefinitions(); } }

menu_ui_menu_predelete

menu_ui_menu_predelete(Menu $menu) Implements hook_ENTITY_TYPE_predelete() for menu entities. File core/modules/menu_ui/menu_ui.module, line 98 Allows administrators to customize the site's navigation menus. Code function menu_ui_menu_predelete(Menu $menu) { // Delete all links from the menu. /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); $menu_link_manager->deleteLinksInMenu($menu->id(

menu_ui_menu_insert

menu_ui_menu_insert(Menu $menu) Implements hook_ENTITY_TYPE_insert( for menu entities. File core/modules/menu_ui/menu_ui.module, line 76 Allows administrators to customize the site's navigation menus. Code function menu_ui_menu_insert(Menu $menu) { menu_cache_clear_all(); // Invalidate the block cache to update menu-based derivatives. if (\Drupal::moduleHandler()->moduleExists('block')) { \Drupal::service('plugin.manager.block')->clearCachedDefinitions(); } }

menu_ui_menu_delete

menu_ui_menu_delete(Menu $menu) Implements hook_ENTITY_TYPE_delete() for menu entities. File core/modules/menu_ui/menu_ui.module, line 108 Allows administrators to customize the site's navigation menus. Code function menu_ui_menu_delete(Menu $menu) { menu_cache_clear_all(); // Invalidate the block cache to update menu-based derivatives. if (\Drupal::moduleHandler()->moduleExists('block')) { \Drupal::service('plugin.manager.block')->clearCachedDefinitions(); } }

menu_ui_help

menu_ui_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/menu_ui/menu_ui.module, line 33 Allows administrators to customize the site's navigation menus. Code function menu_ui_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.menu_ui': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Menu UI module provides an interface for managing

menu_ui_get_menu_link_defaults

menu_ui_get_menu_link_defaults(NodeInterface $node) Returns the definition for a menu link for the given node. Parameters \Drupal\node\NodeInterface $node: The node entity. Return value array An array that contains default values for the menu link form. File core/modules/menu_ui/menu_ui.module, line 193 Allows administrators to customize the site's navigation menus. Code function menu_ui_get_menu_link_defaults(NodeInterface $node) { // Prepare the definition for the edit form. /** @var

menu_ui_get_menus

menu_ui_get_menus($all = TRUE) Return an associative array of the custom menus names. Parameters bool $all: (optional) If FALSE return only user-added menus, or if TRUE also include the menus defined by the system. Defaults to TRUE. Return value array An array with the machine-readable names as the keys, and human-readable titles as the values. File core/modules/menu_ui/menu_ui.module, line 478 Allows administrators to customize the site's navigation menus. Code function menu_ui_get_menus($