class PreSendPdfMultipleEvent in Entity Print 8
The PreSendPdfMultipleEvent class.
Hierarchy
- class \Drupal\entity_print\Event\PdfEventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\entity_print\Event\PreSendPdfMultipleEvent
Expanded class hierarchy of PreSendPdfMultipleEvent
1 file declares its use of PreSendPdfMultipleEvent
File
- src/
Event/ PreSendPdfMultipleEvent.php, line 10
Namespace
Drupal\entity_print\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PdfEventBase:: |
protected | property | ||
PdfEventBase:: |
public | function | Gets the PDF Engine plugin that will print the PDF. | |
PreSendPdfMultipleEvent:: |
protected | property | ||
PreSendPdfMultipleEvent:: |
public | function | Gets the entities being printed to PDF. | |
PreSendPdfMultipleEvent:: |
public | function |
PreSendPdfEvent constructor. Overrides PdfEventBase:: |