You are here

abstract class PdfEventBase in Entity Print 8

Hierarchy

  • class \Drupal\entity_print\Event\PdfEventBase extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of PdfEventBase

File

src/Event/PdfEventBase.php, line 8

Namespace

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

  /**
   * @var \Drupal\entity_print\Plugin\PdfEngineInterface
   */
  protected $pdfEngine;

  /**
   * The PDF Engine event base class.
   *
   * @param \Drupal\entity_print\Plugin\PdfEngineInterface $pdf_engine
   *   The PDF Engine.
   */
  public function __construct(PdfEngineInterface $pdf_engine) {
    $this->pdfEngine = $pdf_engine;
  }

  /**
   * Gets the PDF Engine plugin that will print the PDF.
   *
   * @return \Drupal\entity_print\Plugin\PdfEngineInterface
   *   The PDF Engine.
   */
  public function getPdfEngine() {
    return $this->pdfEngine;
  }

}

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.
PdfEventBase::__construct public function The PDF Engine event base class. 2