Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkTree.php

function MenuLinkTree::__construct

Constructs a \Drupal\Core\Menu\MenuLinkTree object.

Parameters

\Drupal\Core\Menu\MenuTreeStorageInterface $treeStorage: The menu link tree storage.

\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: The menu link plugin manager.

\Drupal\Core\Routing\RouteProviderInterface $routeProvider: The route provider to load routes by name.

\Drupal\Core\Menu\MenuActiveTrailInterface $menuActiveTrail: The active menu trail service.

\Drupal\Core\Utility\CallableResolver $callableResolver: The callable resolver.

File

core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 32

Class

MenuLinkTree
Implements the loading, transforming and rendering of menu link trees.

Namespace

Drupal\Core\Menu

Code

public function __construct(MenuTreeStorageInterface $treeStorage, MenuLinkManagerInterface $menuLinkManager, RouteProviderInterface $routeProvider, MenuActiveTrailInterface $menuActiveTrail, CallableResolver $callableResolver) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal