You are here

public function UserPasswordBlock::__construct in Form Block 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/UserPasswordBlock.php \Drupal\formblock\Plugin\Block\UserPasswordBlock::__construct()

Constructs a new UserPasswordBlock plugin.

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 $formBuilder: The form builder.

Overrides BlockPluginTrait::__construct

File

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

Class

UserPasswordBlock
Provides a block for the password reset form.

Namespace

Drupal\formblock\Plugin\Block

Code

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