You are here

public function RendererInterface::getHtml in Entity Print 8

Generate the HTML for our entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity we're rendering.

bool $use_default_css: TRUE if we should inject our default CSS otherwise FALSE.

bool $optimize_css: TRUE if we should compress the CSS otherwise FALSE.

Return value

string The generated HTML.

Throws

\Exception

1 method overrides RendererInterface::getHtml()
ContentEntityRenderer::getHtml in src/Renderer/ContentEntityRenderer.php
Generate the HTML for our entity.

File

src/Renderer/RendererInterface.php, line 24

Class

RendererInterface

Namespace

Drupal\entity_print\Renderer

Code

public function getHtml(EntityInterface $entity, $use_default_css, $optimize_css);