public function Barcode::__construct in Barcodes 2.0.x
Same name in this branch
- 2.0.x src/Template/Barcode.php \Drupal\barcodes\Template\Barcode::__construct()
- 2.0.x src/Plugin/Block/Barcode.php \Drupal\barcodes\Plugin\Block\Barcode::__construct()
Same name and namespace in other branches
- 8 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.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The currently active route match object.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ Barcode.php, line 72
Class
- Barcode
- Provides a 'Barcode' block.
Namespace
Drupal\barcodes\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ModuleHandlerInterface $module_handler, Token $token, RouteMatchInterface $route_match) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->logger = $logger;
$this->moduleHandler = $module_handler;
$this->token = $token;
$this->routeMatch = $route_match;
}