You are here

public function CheeseburgerMenu::__construct in Cheeseburger Menu 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/Block/CheeseburgerMenu.php \Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu::__construct()
  2. 8.2 src/Plugin/Block/CheeseburgerMenu.php \Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu::__construct()
  3. 8.3 src/Plugin/Block/CheeseburgerMenu.php \Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu::__construct()

CheeseburgerMenu constructor.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/CheeseburgerMenu.php, line 119
Cheeseburger class extends BlockBase.

Class

CheeseburgerMenu
Block info.

Namespace

Drupal\cheeseburger_menu\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandler $moduleHandler, LanguageManager $languageManager, RouteMatchInterface $route_match, Renderer $renderer, MenuLinkTree $menuLinkTree, ThemeHandler $themeHandler, BreakpointManager $breakpointManager, RenderCheeseburgerMenuBlock $renderCheeseburgerMenuBlock, Connection $connection) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleHandler = $moduleHandler;
  $this->languageManager = $languageManager;
  $this->routeMatch = $route_match;
  $this->renderer = $renderer;
  $this->menuTree = $menuLinkTree;
  $this->themeHandler = $themeHandler;
  $this->breakPointManager = $breakpointManager;
  $this->renderCheesebugerMenuService = $renderCheeseburgerMenuBlock;
  $this->database = $connection;
}