You are here

public function Pdf::__construct in PDF Generator 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/display/Pdf.php \Drupal\pdf_generator\Plugin\views\display\Pdf::__construct()

Constructs a new Date instance.

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.

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\pdf_generator\DomPdfGenerator $pdfGenerator: The pdf generator.

Overrides PathPluginBase::__construct

File

src/Plugin/views/display/Pdf.php, line 57

Class

Pdf
The plugin that handles a feed, such as RSS or atom.

Namespace

Drupal\pdf_generator\Plugin\views\display

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, StateInterface $state, DomPdfGenerator $pdfGenerator) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider, $state);
  $this->pdfGenerator = $pdfGenerator;
}