You are here

public function FancyLoginBlock::__construct in Fancy Login 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/FancyLoginBlock.php \Drupal\fancy_login\Plugin\Block\FancyLoginBlock::__construct()

Creates a FancyLoginBlock object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/FancyLoginBlock.php, line 42

Class

FancyLoginBlock
Provides a 'Fancy Login' block.

Namespace

Drupal\fancy_login\Plugin\Block

Code

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