You are here

public function PreSendPrintEvent::__construct in Entity Print 8.2

PreSendPrintEvent constructor.

Parameters

\Drupal\entity_print\Plugin\PrintEngineInterface $print_engine: The Print Engine.

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

Overrides PrintEventBase::__construct

File

src/Event/PreSendPrintEvent.php, line 27

Class

PreSendPrintEvent
The PreSendPrintEvent class.

Namespace

Drupal\entity_print\Event

Code

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