diff --git a/core/modules/menu/menu.module b/core/modules/menu/menu.module index 08355a1..d91ee0e 100644 --- a/core/modules/menu/menu.module +++ b/core/modules/menu/menu.module @@ -33,20 +33,20 @@ function menu_help($path, $arg) { case 'admin/help#menu': $output = ''; $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 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' => \Drupal::url('block.admin_display'), '!menus' => \Drupal::url('menu.overview_page'), '@menu' => 'http://drupal.org/documentation/modules/menu/')) . '
'; $output .= '' . t('You can enable the newly-created block for this menu on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '
'; + return '' . t('You can enable the newly-created block for this menu on the Blocks administration page.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; } - if ($path == 'admin/structure/menu' && module_exists('block')) { - return '' . t('Each menu has a corresponding block that is managed on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '
'; + if ($path == 'admin/structure/menu' && \Drupal::moduleHandler()->moduleExists('block')) { + return '' . t('Each menu has a corresponding block that is managed on the Blocks administration page.', array('!blocks' => \Drupal::url('block.admin_display'))) . '
'; } }