You are here

public function PrintEngineBase::__construct in Entity Print 8.2

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

3 calls to PrintEngineBase::__construct()
DomPdf::__construct in src/Plugin/EntityPrint/PrintEngine/DomPdf.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
PhpWkhtmlToPdf::__construct in src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TcPdfv1::__construct in src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
3 methods override PrintEngineBase::__construct()
DomPdf::__construct in src/Plugin/EntityPrint/PrintEngine/DomPdf.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
PhpWkhtmlToPdf::__construct in src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TcPdfv1::__construct in src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/PrintEngineBase.php, line 29

Class

PrintEngineBase
The PrintEngineBase class.

Namespace

Drupal\entity_print\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ExportTypeInterface $export_type) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
  $this->exportType = $export_type;
}