You are here

public function SuperfishBlock::__construct in Superfish 8

Constructs a new SuperfishBlock.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree service.

\Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail: The active menu trail service.

Overrides SystemMenuBlock::__construct

File

src/Plugin/Block/SuperfishBlock.php, line 47

Class

SuperfishBlock
Provides a "Superfish" block.

Namespace

Drupal\superfish\Plugin\Block

Code

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