You are here

class PreSendPdfMultipleEvent in Entity Print 8

The PreSendPdfMultipleEvent class.

Hierarchy

Expanded class hierarchy of PreSendPdfMultipleEvent

1 file declares its use of PreSendPdfMultipleEvent
EntityPrintPdfBuilder.php in src/EntityPrintPdfBuilder.php

File

src/Event/PreSendPdfMultipleEvent.php, line 10

Namespace

Drupal\entity_print\Event
View source
class PreSendPdfMultipleEvent extends PdfEventBase {

  /**
   * @var \Drupal\Core\Entity\EntityInterface
   */
  protected $entities;

  /**
   * PreSendPdfEvent constructor.
   *
   * @param \Drupal\entity_print\Plugin\PdfEngineInterface $pdf_engine
   *   The PDF Engine.
   * @param \Drupal\Core\Entity\EntityInterface[] $entities
   *   The entities to print.
   */
  public function __construct(PdfEngineInterface $pdf_engine, array $entities) {
    parent::__construct($pdf_engine);
    $this->entities = $entities;
  }

  /**
   * Gets the entities being printed to PDF.
   *
   * @return \Drupal\Core\Entity\EntityInterface[]
   *   The content entities.
   */
  public function getEntities() {
    return $this->entities;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PdfEventBase::$pdfEngine protected property
PdfEventBase::getPdfEngine public function Gets the PDF Engine plugin that will print the PDF.
PreSendPdfMultipleEvent::$entities protected property
PreSendPdfMultipleEvent::getEntities public function Gets the entities being printed to PDF.
PreSendPdfMultipleEvent::__construct public function PreSendPdfEvent constructor. Overrides PdfEventBase::__construct