8.5.x Drupal.php Drupal::menuTree()
8.0.x Drupal.php Drupal::menuTree()
8.1.x Drupal.php Drupal::menuTree()
8.2.x Drupal.php Drupal::menuTree()
8.3.x Drupal.php Drupal::menuTree()
8.4.x Drupal.php Drupal::menuTree()
8.6.x Drupal.php Drupal::menuTree()

Returns the menu tree.

Return value

\Drupal\Core\Menu\MenuLinkTreeInterface The menu tree.

File

core/lib/Drupal.php, line 707
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function menuTree() {
  return static::getContainer()
    ->get('menu.link_tree');
}