public function ClearCookieBlock::__construct in Close Block 8
Class constructor.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
object $formBuilder: The form builder.
object $currentUser: The current user account.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ ClearCookieBlock.php, line 53
Class
- ClearCookieBlock
- Provides a 'ClearCookie' Block.
Namespace
Drupal\closeblock\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, $formBuilder, $currentUser) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->formBuilder = $formBuilder;
$this->currentUser = $currentUser;
}