abstract class PrintEventBase in Entity Print 8.2
Event base class.
Hierarchy
- class \Drupal\entity_print\Event\PrintEventBase extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PrintEventBase
File
- src/
Event/ PrintEventBase.php, line 11
Namespace
Drupal\entity_print\EventView source
abstract class PrintEventBase extends Event {
/**
* The print engine plugin.
*
* @var \Drupal\entity_print\Plugin\PrintEngineInterface
*/
protected $printEngine;
/**
* The Print Engine event base class.
*
* @param \Drupal\entity_print\Plugin\PrintEngineInterface $print_engine
* The Print Engine.
*/
public function __construct(PrintEngineInterface $print_engine) {
$this->printEngine = $print_engine;
}
/**
* Gets the Print Engine plugin that will print the Print.
*
* @return \Drupal\entity_print\Plugin\PrintEngineInterface
* The Print Engine.
*/
public function getPrintEngine() {
return $this->printEngine;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrintEventBase:: |
protected | property | The print engine plugin. | |
PrintEventBase:: |
public | function | Gets the Print Engine plugin that will print the Print. | |
PrintEventBase:: |
public | function | The Print Engine event base class. | 1 |