You are here

public function PdfEventBase::__construct in Entity Print 8

The PDF Engine event base class.

Parameters

\Drupal\entity_print\Plugin\PdfEngineInterface $pdf_engine: The PDF Engine.

2 calls to PdfEventBase::__construct()
PreSendPdfEvent::__construct in src/Event/PreSendPdfEvent.php
PreSendPdfEvent constructor.
PreSendPdfMultipleEvent::__construct in src/Event/PreSendPdfMultipleEvent.php
PreSendPdfEvent constructor.
2 methods override PdfEventBase::__construct()
PreSendPdfEvent::__construct in src/Event/PreSendPdfEvent.php
PreSendPdfEvent constructor.
PreSendPdfMultipleEvent::__construct in src/Event/PreSendPdfMultipleEvent.php
PreSendPdfEvent constructor.

File

src/Event/PdfEventBase.php, line 21

Class

PdfEventBase

Namespace

Drupal\entity_print\Event

Code

public function __construct(PdfEngineInterface $pdf_engine) {
  $this->pdfEngine = $pdf_engine;
}