Defines an interface for loading, transforming and rendering menu link trees.
The main purposes of this interface are:
Name | Modifiers | Type | Description |
---|---|---|---|
MenuLinkTreeInterface::build | public | function | Builds a renderable array from a menu tree. |
MenuLinkTreeInterface::getCurrentRouteMenuTreeParameters | public | function | Gets the link tree parameters for rendering a specific menu. |
MenuLinkTreeInterface::getExpanded | public | function | Finds expanded links in a menu given a set of possible parents. |
MenuLinkTreeInterface::getSubtreeHeight | public | function | Finds the height of a subtree rooted by of the given ID. |
MenuLinkTreeInterface::load | public | function | Loads a menu tree with a menu link plugin instance at each element. |
MenuLinkTreeInterface::maxDepth | public | function | Returns the maximum depth of tree that is supported. |
MenuLinkTreeInterface::transform | public | function | Applies menu link tree manipulators to transform the given 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!Core!Menu!MenuLinkTreeInterface.php/interface/MenuLinkTreeInterface/8.1.x