You are here

public function OpenIDConnectLoginBlock::__construct in OpenID Connect / OAuth client 2.x

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

Construct.

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\FormBuilder $form_builder: The form builder.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/OpenIDConnectLoginBlock.php, line 41

Class

OpenIDConnectLoginBlock
Provides a 'OpenID Connect login' block.

Namespace

Drupal\openid_connect\Plugin\Block

Code

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