You are here

public function BlockFieldTestAuthenticatedBlock::__construct in Block field 8

Overrides BlockPluginTrait::__construct

File

tests/modules/block_field_test/src/Plugin/Block/BlockFieldTestAuthenticatedBlock.php, line 33

Class

BlockFieldTestAuthenticatedBlock
Provides a 'Block field test authenticated' block.

Namespace

Drupal\block_field_test\Plugin\Block

Code

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