You are here

public function Menu::__construct in Helper 8

File constructor.

Parameters

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The entity type manager.

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

File

src/Menu.php, line 41

Class

Menu
Provides helpers working with menus and menu links.

Namespace

Drupal\helper

Code

public function __construct(MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) {
  $this->menuTree = $menu_tree;
  $this->menuActiveTrail = $menu_active_trail;
}