function menu_get_router

Gets the menu router.

Related topics

3 calls to menu_get_router()
AdminTest::testAdminPages in drupal/core/modules/system/lib/Drupal/system/Tests/System/AdminTest.php
Tests output on administrative listing pages.
MenuLink::reset in drupal/core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php
Resets a system-defined menu link.
translation_entity_types_translatable in drupal/core/modules/translation_entity/translation_entity.module
Returns all the translatable entity types.

File

drupal/core/includes/menu.inc, line 2791
API for the Drupal menu system.

Code

function menu_get_router() {

  // Check first if we have it in memory already.
  $menu = _menu_router_cache();
  if (empty($menu)) {
    list($menu, $masks) = menu_router_build();
  }
  return $menu;
}