interface RendererInterface in Entity Print 8
Same name and namespace in other branches
- 8.2 src/Renderer/RendererInterface.php \Drupal\entity_print\Renderer\RendererInterface
Hierarchy
- interface \Drupal\entity_print\Renderer\RendererInterface
Expanded class hierarchy of RendererInterface
All classes that implement RendererInterface
File
- src/
Renderer/ RendererInterface.php, line 7
Namespace
Drupal\entity_print\RendererView source
interface RendererInterface {
/**
* Generate the HTML for our entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity we're rendering.
* @param bool $use_default_css
* TRUE if we should inject our default CSS otherwise FALSE.
* @param bool $optimize_css
* TRUE if we should compress the CSS otherwise FALSE.
*
* @return string
* The generated HTML.
*
* @throws \Exception
*/
public function getHtml(EntityInterface $entity, $use_default_css, $optimize_css);
/**
* Generate the HTML for our entity.
*
* @param array $entities
* An array of entities to generate the HTML for.
* @param bool $use_default_css
* TRUE if we should inject our default CSS otherwise FALSE.
* @param bool $optimize_css
* TRUE if we should compress the CSS otherwise FALSE.
*
* @return string
* The generated HTML.
*
* @throws \Exception
*/
public function getHtmlMultiple($entities, $use_default_css, $optimize_css);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RendererInterface:: |
public | function | Generate the HTML for our entity. | 1 |
RendererInterface:: |
public | function | Generate the HTML for our entity. | 1 |