MenuLinkTree::createInstances

protected MenuLinkTree::createInstances(array $data_tree) Returns a tree containing of MenuLinkTreeElement based upon tree data. This method converts the tree representation as array coming from the tree storage to a tree containing a list of MenuLinkTreeElement[]. Parameters array $data_tree: The tree data coming from the menu tree storage. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] An array containing the elements of a menu tree. File core/lib/Drupal/Core/Menu/MenuLinkTree.php, li

MenuLinkTree::buildItems

protected MenuLinkTree::buildItems(array $tree, CacheableMetadata &$tree_access_cacheability, CacheableMetadata &$tree_link_cacheability) Builds the #items property for a menu tree's renderable array. Helper function for ::build(). Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: A data structure representing the tree, as returned from MenuLinkTreeInterface::load(). \Drupal\Core\Cache\CacheableMetadata &$tree_access_cacheability: Internal use only. The aggregated cacheabil

MenuLinkTree::build

public MenuLinkTree::build(array $tree) Builds a renderable array from a menu tree. The menu item's LI element is given one of the following classes: expanded: The menu item is showing its submenu. collapsed: The menu item has a submenu that is not shown. leaf: The menu item has no submenu. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: A data structure representing the tree, as returned from MenuLinkTreeInterface::load(). Return value array A renderable array. Overrides MenuL

MenuLinkTree::$treeStorage

The menu link tree storage. Type: \Drupal\Core\Menu\MenuTreeStorageInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 22 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees. Namespace Drupal\Core\Menu Code protected $treeStorage;

MenuLinkTree::$routeProvider

The route provider to load routes by name. Type: \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 29 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees. Namespace Drupal\Core\Menu Code protected $routeProvider;

MenuLinkTree::$menuActiveTrail

The active menu trail service. Type: \Drupal\Core\Menu\MenuActiveTrailInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 36 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees. Namespace Drupal\Core\Menu Code protected $menuActiveTrail;

MenuLinkTree::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 43 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees. Namespace Drupal\Core\Menu Code protected $controllerResolver;

MenuLinkTree

Implements the loading, transforming and rendering of menu link trees. Hierarchy class \Drupal\Core\Menu\MenuLinkTree implements MenuLinkTreeInterface File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 15 Namespace Drupal\Core\Menu Members Name Modifiers Type Description MenuLinkTree::$controllerResolver protected property The controller resolver. MenuLinkTree::$menuActiveTrail protected property The active menu trail service. MenuLinkTree::$routeProvider

MenuLinkResetForm::__construct

public MenuLinkResetForm::__construct(MenuLinkManagerInterface $menu_link_manager) Constructs a MenuLinkResetForm object. Parameters \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager. File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 38 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function __construct(MenuLinkManagerInterface $menu_link_manager) {

MenuLinkResetForm::submitForm

public MenuLinkResetForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 101 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal