menu.link_tree

Same name and namespace in other branches
  1. 8.9.x core/core.services.yml \menu.link_tree
  2. 10 core/core.services.yml \menu.link_tree
  3. 11.x core/core.services.yml \menu.link_tree

Class

Drupal\Core\Menu\MenuLinkTree
3 string references to menu.link_tree
Drupal::menuTree in core/lib/Drupal.php
Returns the menu tree.
DrupalTest::testMenuTree in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the menuTree() method.
MenuLinkTreeTest::setUp in core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php

File

core/core.services.yml

View source
  1. class: Drupal\Core\Menu\MenuLinkTree
  2. arguments:
  3. - '@menu.tree_storage'
  4. - '@plugin.manager.menu.link'
  5. - '@router.route_provider'
  6. - '@menu.active_trail'
  7. - '@controller_resolver'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.