You are here

public function MenuItemsTwigExtension::__construct in Simplify Menu 8

Same name and namespace in other branches
  1. 8.2 src/TwigExtension/MenuItemsTwigExtension.php \Drupal\simplify_menu\TwigExtension\MenuItemsTwigExtension::__construct()

MenuItemsTwigExtension constructor.

Parameters

MenuItems $menuItems: The MenuItems service.

File

src/TwigExtension/MenuItemsTwigExtension.php, line 27

Class

MenuItemsTwigExtension
Class MenuItemsTwigExtension.

Namespace

Drupal\simplify_menu\TwigExtension

Code

public function __construct(MenuItems $menuItems) {
  $this->menuItems = $menuItems;
}