You are here

public function PdfBuilderInterface::getMultipleEntitiesRenderedAsPdf in Entity Print 8

Render any content entity as a PDF.

Parameters

array $entities: An array of content entities to render, 1 per page.

\Drupal\entity_print\Plugin\PdfEngineInterface $pdf_engine: The plugin id of the PDF engine to use.

bool $force_download: (optional) TRUE to try and force the PDF to be downloaded rather than opened.

bool $use_default_css: (optional) TRUE if you want the default CSS included, otherwise FALSE.

Return value

string FALSE or the PDF content will be sent to the browser.

1 method overrides PdfBuilderInterface::getMultipleEntitiesRenderedAsPdf()
EntityPrintPdfBuilder::getMultipleEntitiesRenderedAsPdf in src/EntityPrintPdfBuilder.php
Render any content entity as a PDF.

File

src/PdfBuilderInterface.php, line 45

Class

PdfBuilderInterface
Interface for the PDF builder service.

Namespace

Drupal\entity_print

Code

public function getMultipleEntitiesRenderedAsPdf(array $entities, PdfEngineInterface $pdf_engine, $force_download = FALSE, $use_default_css = TRUE);