You are here

public function OpenIDConnectLoginBlock::__construct in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x 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.

string $plugin_definition: The plugin implementation definition.

\Drupal\openid_connect\Plugin\OpenIDConnectClientManager $plugin_manager: The OpenID Connect client manager.

\Drupal\Core\Form\FormBuilder $form_builder: The form builder.

Overrides BlockPluginTrait::__construct

File

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

Class

OpenIDConnectLoginBlock
Provides a 'OpenID Connect login' block.

Namespace

Drupal\openid_connect\Plugin\Block

Code

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