You are here

public function UltimenuBlock::__construct in Ultimenu 8

Same name in this branch
  1. 8 src/Plugin/Derivative/UltimenuBlock.php \Drupal\ultimenu\Plugin\Derivative\UltimenuBlock::__construct()
  2. 8 src/Plugin/Block/UltimenuBlock.php \Drupal\ultimenu\Plugin\Block\UltimenuBlock::__construct()
Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/UltimenuBlock.php \Drupal\ultimenu\Plugin\Block\UltimenuBlock::__construct()

Constructs an UltimenuBlock object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\ultimenu\UltimenuManagerInterface $ultimenu_manager: The ultimenu manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/UltimenuBlock.php, line 43

Class

UltimenuBlock
Provides an 'Ultimenu' block.

Namespace

Drupal\ultimenu\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, UltimenuManagerInterface $ultimenu_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->ultimenuManager = $ultimenu_manager;
}