public function HorizontalMenu::__construct in Responsive and off-canvas menu 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
- 8.2 src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
- 4.4.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
- 4.1.x src/Plugin/Block/HorizontalMenu.php \Drupal\responsive_menu\Plugin\Block\HorizontalMenu::__construct()
- 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\BlockCode
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;
}