You are here

public function VarDumperBlock::__construct in VarDumper 8

Same name in this branch
  1. 8 modules/vardumper_block/src/VarDumper/VarDumperBlock.php \Drupal\vardumper_block\VarDumper\VarDumperBlock::__construct()
  2. 8 modules/vardumper_block/src/Plugin/Block/VarDumperBlock.php \Drupal\vardumper_block\Plugin\Block\VarDumperBlock::__construct()

.

Overrides BlockPluginTrait::__construct

File

modules/vardumper_block/src/Plugin/Block/VarDumperBlock.php, line 33

Class

VarDumperBlock
Provides a 'Vardumper' block.

Namespace

Drupal\vardumper_block\Plugin\Block

Code

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