public static function Drupal::menuTree
public static Drupal::menuTree()
Returns the menu tree.
Return value
\Drupal\Core\Menu\MenuLinkTreeInterface The menu tree.
File
- core/lib/Drupal.php, line 681
- Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function menuTree() { return static::getContainer()->get('menu.link_tree'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal.php/function/Drupal::menuTree/8.1.x