You are here

public function PreSendPdfMultipleEvent::__construct in Entity Print 8

PreSendPdfEvent constructor.

Parameters

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

\Drupal\Core\Entity\EntityInterface[] $entities: The entities to print.

Overrides PdfEventBase::__construct

File

src/Event/PreSendPdfMultipleEvent.php, line 25

Class

PreSendPdfMultipleEvent
The PreSendPdfMultipleEvent class.

Namespace

Drupal\entity_print\Event

Code

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