You are here

public function PrintBuilderInterface::printHtml in Entity Print 8.2

Get a HTML version of the entity as used for the Print 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 the entity, the same as what is used for the Print.

1 method overrides PrintBuilderInterface::printHtml()
PrintBuilder::printHtml in src/PrintBuilder.php
Get a HTML version of the entity as used for the Print rendering.

File

src/PrintBuilderInterface.php, line 43

Class

PrintBuilderInterface
Interface for the Print builder service.

Namespace

Drupal\entity_print

Code

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