class PreSendPrintEvent in Entity Print 8.2
The PreSendPrintEvent class.
Hierarchy
- class \Drupal\entity_print\Event\PrintEventBase extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\entity_print\Event\PreSendPrintEvent
Expanded class hierarchy of PreSendPrintEvent
1 file declares its use of PreSendPrintEvent
- PrintBuilder.php in src/
PrintBuilder.php
File
- src/
Event/ PreSendPrintEvent.php, line 10
Namespace
Drupal\entity_print\EventView source
class PreSendPrintEvent extends PrintEventBase {
/**
* An array of entities.
*
* @var \Drupal\Core\Entity\EntityInterface[]
*/
protected $entities;
/**
* PreSendPrintEvent constructor.
*
* @param \Drupal\entity_print\Plugin\PrintEngineInterface $print_engine
* The Print Engine.
* @param \Drupal\Core\Entity\EntityInterface[] $entities
* The entity to print.
*/
public function __construct(PrintEngineInterface $print_engine, array $entities) {
parent::__construct($print_engine);
$this->entities = $entities;
}
/**
* Gets the entities that is being printed to Print.
*
* @return \Drupal\Core\Entity\EntityInterface[]
* The content entities.
*/
public function getEntities() {
return $this->entities;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PreSendPrintEvent:: |
protected | property | An array of entities. | |
PreSendPrintEvent:: |
public | function | Gets the entities that is being printed to Print. | |
PreSendPrintEvent:: |
public | function |
PreSendPrintEvent constructor. Overrides PrintEventBase:: |
|
PrintEventBase:: |
protected | property | The print engine plugin. | |
PrintEventBase:: |
public | function | Gets the Print Engine plugin that will print the Print. |