You are here

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

Same name and namespace in other branches
  1. 8.2 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 62

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, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->menuTree = $menu_tree;
  $this->menuActiveTrail = $menu_active_trail;
  $this->configFactory = $config_factory;
  $this->config = $config_factory
    ->get('responsive_menu.settings');
  $this->moduleHandler = $module_handler;
}