service menu.link_tree in Drupal 10
Same name and namespace in other branches
- 8 core/core.services.yml \menu.link_tree
- 9 core/core.services.yml \menu.link_tree
Class
Drupal\Core\Menu\MenuLinkTree8 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.
- MenuForm::create in core/
modules/ menu_ui/ src/ MenuForm.php - Instantiates a new instance of this class.
- MenuLinkTreeTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuLinkTreeTest.php - MenuUiTest::checkInvalidParentMenuLinks in core/
modules/ menu_ui/ tests/ src/ Functional/ MenuUiTest.php - Tests that parent options are limited by depth when adding menu links.
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Menu\MenuLinkTree
- arguments:
- - '@menu.tree_storage'
- - '@plugin.manager.menu.link'
- - '@router.route_provider'
- - '@menu.active_trail'
- - '@controller_resolver'