function menu_get_router

Gets the menu router.

Related topics

2 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.
menu_reset_item in drupal/core/modules/menu/menu.module
Reset a system-defined menu link.

File

drupal/core/includes/menu.inc, line 2728
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;
}