You are here

public function Barcode::__construct in Barcodes 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/Barcode.php \Drupal\barcodes\Plugin\Block\Barcode::__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.

\Psr\Log\LoggerInterface $logger: A logger instance.

Overrides BlockPluginTrait::__construct

File

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

Class

Barcode
Provides a 'Barcode' block.

Namespace

Drupal\barcodes\Plugin\Block

Code

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