You are here

public function PreSendPdfEvent::__construct in Entity Print 8

PreSendPdfEvent constructor.

Parameters

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

\Drupal\Core\Entity\EntityInterface $entity: The entity to print.

Overrides PdfEventBase::__construct

File

src/Event/PreSendPdfEvent.php, line 26

Class

PreSendPdfEvent
The PreSendPdfEvent class.

Namespace

Drupal\entity_print\Event

Code

public function __construct(PdfEngineInterface $pdf_engine, EntityInterface $entity) {
  parent::__construct($pdf_engine);
  $this->entity = $entity;
}