You are here

public function MasqueradeBlock::__construct in Masquerade 8.2

Constructs a new MasqueradeBlock 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\Core\Form\FormBuilderInterface $form_builder: The form builder service.

\Drupal\masquerade\Masquerade $masquerade: The masquerade service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/MasqueradeBlock.php, line 54

Class

MasqueradeBlock
Provides a 'Masquerade' block.

Namespace

Drupal\masquerade\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $form_builder, Masquerade $masquerade) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->formBuilder = $form_builder;
  $this->masquerade = $masquerade;
}