You are here

public function MenuViewBuilder::__construct in Twig Tweak 3.x

Same name and namespace in other branches
  1. 3.1.x src/View/MenuViewBuilder.php \Drupal\twig_tweak\View\MenuViewBuilder::__construct()

Constructs a MenuViewBuilder object.

File

src/View/MenuViewBuilder.php, line 22

Class

MenuViewBuilder
Menu view builder.

Namespace

Drupal\twig_tweak\View

Code

public function __construct(MenuLinkTreeInterface $menu_link_tree) {
  $this->menuLinkTree = $menu_link_tree;
}