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. File core/modules/menu_ui/menu_ui.module, line 28 Allows administrators to customize the site's navigation menus. Code const MENU_MAX_MENU_NAME_LENGTH_UI = 27;

menu_local_tasks

menu_local_tasks($level = 0) Collects the local tasks (tabs) for the current route. Parameters int $level: The level of tasks you ask for. Primary tasks are 0, secondary are 1. Return value array An array containing tabs: Local tasks for the requested level. route_name: The route name for the current page used to collect the local tasks. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. See also hook_menu_local_tasks_alter() Related topics Menu system Define the navigat

menu_local_tabs

menu_local_tabs() Returns a renderable element for the primary and secondary tabs. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 146 API for the Drupal menu system. Code function menu_local_tabs() { $build = array( '#theme' => 'menu_local_tasks', '#primary' => menu_primary_local_tasks(), '#secondary' => menu_secondary_local_tasks(), ); return !empty($build['#primary']) || !e

menu_list_system_menus

menu_list_system_menus() Returns an array containing the names of system-defined (default) menus. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 85 API for the Drupal menu system. Code function menu_list_system_menus() { return array( 'tools' => 'Tools', 'admin' => 'Administration', 'account' => 'User account menu', 'main' => 'Main navigation', 'footer' => 'Footer m

menu_link_content_path_update

menu_link_content_path_update($path) Implements hook_path_update(). File core/modules/menu_link_content/menu_link_content.module, line 68 Allows administrators to create custom menu links. Code function menu_link_content_path_update($path) { if ($path['alias'] != $path['original']['alias']) { _menu_link_content_update_path_alias($path['alias']); _menu_link_content_update_path_alias($path['original']['alias']); } elseif ($path['source'] != $path['original']['source']) { _menu

menu_link_content_path_insert

menu_link_content_path_insert($path) Implements hook_path_insert(). File core/modules/menu_link_content/menu_link_content.module, line 43 Allows administrators to create custom menu links. Code function menu_link_content_path_insert($path) { _menu_link_content_update_path_alias($path['alias']); }

menu_link_content_path_delete

menu_link_content_path_delete($path) Implements hook_path_delete(). File core/modules/menu_link_content/menu_link_content.module, line 81 Allows administrators to create custom menu links. Code function menu_link_content_path_delete($path) { _menu_link_content_update_path_alias($path['alias']); }

menu_link_content_menu_delete

menu_link_content_menu_delete(MenuInterface $menu) Implements hook_menu_delete(). File core/modules/menu_link_content/menu_link_content.module, line 34 Allows administrators to create custom menu links. Code function menu_link_content_menu_delete(MenuInterface $menu) { $storage = \Drupal::entityManager()->getStorage('menu_link_content'); $menu_links = $storage->loadByProperties(array('menu_name' => $menu->id())); $storage->delete($menu_links); }

menu_link_content_help

menu_link_content_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/menu_link_content/menu_link_content.module, line 14 Allows administrators to create custom menu links. Code function menu_link_content_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.menu_link_content': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Custom Menu L

menu_link_content.module

Allows administrators to create custom menu links. File core/modules/menu_link_content/menu_link_content.module Functions Name Description menu_link_content_help Implements hook_help(). menu_link_content_menu_delete Implements hook_menu_delete(). menu_link_content_path_delete Implements hook_path_delete(). menu_link_content_path_insert Implements hook_path_insert(). menu_link_content_path_update Implements hook_path_update(). _menu_link_content_update_path_alias He