public function SmartMenusBlock::__construct in Smartmenus.js 8
SmartMenusBlock constructor.
Parameters
array $configuration:
$plugin_id:
$plugin_definition:
MenuLinkTreeInterface $menu_link_tree:
Renderer $renderer:
SmartmenusUtil $smartmenusUtil:
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ SmartMenusBlock.php, line 62
Class
- SmartMenusBlock
- Provides a 'SmartMenusBlock' block.
Namespace
Drupal\smartmenus\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuLinkTreeInterface $menu_link_tree, Renderer $renderer, SmartmenusUtil $smartmenusUtil) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->menuLinkTree = $menu_link_tree;
$this->renderer = $renderer;
$this->smartmenusUtil = $smartmenusUtil;
// hard coding this
$this->htmlUtil = new Html();
}