You are here

public function HorizontalMenu::__construct in Responsive and off-canvas menu 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
  2. 4.4.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
  3. 4.0.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
  4. 4.1.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
  5. 4.3.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/HorizontalMenu.php, line 39

Class

HorizontalMenu
Provides the HorizontalMenu block.

Namespace

Drupal\responsive_menu\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->menuTree = $menu_tree;
  $this->menuActiveTrail = $menu_active_trail;
}