menu_get_router

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 menu_get_router()

Get the menu router.

Related topics

▾ 2 functions call menu_get_router()

menu_reset_item in modules/menu/menu.module
Reset a system-defined menu link.
SystemAdminTestCase::testAdminPages in modules/system/system.test
Tests output on administrative listing pages.

Code

includes/menu.inc, line 2717

<?php
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;
}
?>