diff --git a/core/modules/menu/lib/Drupal/menu_ui/Tests/MenuTest.php b/core/modules/menu/lib/Drupal/menu_ui/Tests/MenuTest.php index 395f519..43da200 100644 --- a/core/modules/menu/lib/Drupal/menu_ui/Tests/MenuTest.php +++ b/core/modules/menu/lib/Drupal/menu_ui/Tests/MenuTest.php @@ -475,7 +475,7 @@ public function testBlockContextualLinks() { $response = $this->drupalPost('contextual/render', 'application/json', $post, array('query' => array('destination' => 'test-page'))); $this->assertResponse(200); $json = drupal_json_decode($response); - $this->assertIdentical($json[$id], ''); + $this->assertIdentical($json[$id], ''); } /** diff --git a/core/modules/menu/menu_ui.module b/core/modules/menu/menu_ui.module index 091a321..26891de 100644 --- a/core/modules/menu/menu_ui.module +++ b/core/modules/menu/menu_ui.module @@ -31,10 +31,10 @@ */ function menu_ui_help($path, $arg) { switch ($path) { - case 'admin/help#menu': + case 'admin/help#menu_ui': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Menu module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. Each menu is rendered in a block that can be enabled and positioned through the Blocks administration page. You can view and manage menus on the Menus administration page. For more information, see the online handbook entry for the Menu module.', array('@blocks' => url('admin/structure/block'), '@menus' => url('admin/structure/menu'), '@menu' => 'http://drupal.org/documentation/modules/menu/')) . '

'; + $output .= '

' . t('The Menu UI module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. Each menu is rendered in a block that can be enabled and positioned through the Blocks administration page. You can view and manage menus on the Menus administration page. For more information, see the online handbook entry for the Menu module.', array('@blocks' => url('admin/structure/block'), '@menus' => url('admin/structure/menu'), '@menu' => 'http://drupal.org/documentation/modules/menu/')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Managing menus') . '
'; @@ -404,7 +404,7 @@ function menu_ui_node_prepare_form(NodeInterface $node, $form_display, $operatio $query = \Drupal::entityQuery('menu_link') ->condition('link_path', 'node/' . $node->id()) ->condition('menu_name', $menu_name) - ->condition('module', 'menu') + ->condition('module', 'menu_ui') ->sort('mlid', 'ASC') ->range(0, 1); $result = $query->execute(); @@ -416,7 +416,7 @@ function menu_ui_node_prepare_form(NodeInterface $node, $form_display, $operatio $query = \Drupal::entityQuery('menu_link') ->condition('link_path', 'node/' . $node->id()) ->condition('menu_name', array_values($type_menus), 'IN') - ->condition('module', 'menu') + ->condition('module', 'menu_ui') ->sort('mlid', 'ASC') ->range(0, 1); $result = $query->execute(); diff --git a/core/modules/menu_link/menu_link.module b/core/modules/menu_link/menu_link.module index 7dee7ae..be2b069 100644 --- a/core/modules/menu_link/menu_link.module +++ b/core/modules/menu_link/menu_link.module @@ -205,7 +205,7 @@ function menu_link_maintain($module, $op, $link_path, $link_title = NULL) { function menu_link_system_breadcrumb_alter(array &$breadcrumb, array $attributes, array $context) { // Custom breadcrumb behavior for editing menu links, we append a link to // the menu in which the link is found. - if (!empty($attributes[RouteObjectInterface::ROUTE_NAME]) && $attributes[RouteObjectInterface::ROUTE_NAME] == 'menu.link_edit' && !empty($attributes['menu_link'])) { + if (!empty($attributes[RouteObjectInterface::ROUTE_NAME]) && $attributes[RouteObjectInterface::ROUTE_NAME] == 'menu_ui.link_edit' && !empty($attributes['menu_link'])) { $menu_link = $attributes['menu_link']; if (($menu_link instanceof MenuLinkInterface) && !$menu_link->isNew()) { // Add a link to the menu admin screen.