You are here

public function TBMegaMenuAdminController::__construct in The Better Mega Menu 2.x

Same name and namespace in other branches
  1. 8 src/Controller/TBMegaMenuAdminController.php \Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::__construct()

Constructs a TBMegaMenuAdminController object.

Parameters

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The Menu Link Tree service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\tb_megamenu\TBMegaMenuBuilderInterface $menu_builder: The menu builder service.

File

src/Controller/TBMegaMenuAdminController.php, line 54

Class

TBMegaMenuAdminController
Handler for configuring and saving MegaMenu settings.

Namespace

Drupal\tb_megamenu\Controller

Code

public function __construct(MenuLinkTreeInterface $menu_tree, RendererInterface $renderer, TBMegaMenuBuilderInterface $menu_builder) {
  $this->menuTree = $menu_tree;
  $this->renderer = $renderer;
  $this->menuBuilder = $menu_builder;
}