You are here

protected function PdfDownload::getPdfEngine in Entity Print 8

Gets the PDF engine implementation.

Return value

\Drupal\entity_print\Plugin\PdfEngineInterface The PDF Engine implementation.

2 calls to PdfDownload::getPdfEngine()
PdfDownload::execute in src/Plugin/Action/PdfDownload.php
Executes the plugin.
PdfDownload::executeMultiple in src/Plugin/Action/PdfDownload.php
Executes the plugin for an array of objects.

File

src/Plugin/Action/PdfDownload.php, line 144

Class

PdfDownload
Downloads the PDF for an entity.

Namespace

Drupal\entity_print\Plugin\Action

Code

protected function getPdfEngine() {
  if (!isset($this->pdfEngine)) {
    $this->pdfEngine = $this->pluginManager
      ->createInstance($this->entityPrintConfig
      ->get('pdf_engine'));
  }
  return $this->pdfEngine;
}