You are here

public function PdfBuilderInterface::getEntityRenderedAsHtml in Entity Print 8

Get a HTML version of the entity as used for the PDF rendering.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The content entity to render.

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

bool $optimize_css: TRUE if you the CSS should be compressed otherwise FALSE.

Return value

string The rendered HTML for this entity, the same as what is used for the PDF.

1 method overrides PdfBuilderInterface::getEntityRenderedAsHtml()
EntityPrintPdfBuilder::getEntityRenderedAsHtml in src/EntityPrintPdfBuilder.php
Get a HTML version of the entity as used for the PDF rendering.

File

src/PdfBuilderInterface.php, line 60

Class

PdfBuilderInterface
Interface for the PDF builder service.

Namespace

Drupal\entity_print

Code

public function getEntityRenderedAsHtml(EntityInterface $entity, $use_default_css = TRUE, $optimize_css = TRUE);