interface AssetRendererInterface in Entity Print 8.2
Interface for the print asset renderer.
Hierarchy
- interface \Drupal\entity_print\Asset\AssetRendererInterface
Expanded class hierarchy of AssetRendererInterface
All classes that implement AssetRendererInterface
2 files declare their use of AssetRendererInterface
- ContentEntityRenderer.php in src/
Renderer/ ContentEntityRenderer.php - RendererBase.php in src/
Renderer/ RendererBase.php
File
- src/
Asset/ AssetRendererInterface.php, line 8
Namespace
Drupal\entity_print\AssetView source
interface AssetRendererInterface {
/**
* Renders the CSS assets for the given entities.
*
* @param \Drupal\Core\Entity\EntityInterface[] $entities
* An array of entities for whose assets we want to render.
* @param bool $use_default_css
* TRUE to add in the global CSS otherwise FALSE.
* @param bool $optimize_css
* TRUE to optimise the CSS otherwise FALSE.
*
* @return array
* The renderable array for the assets.
*/
public function render(array $entities, $use_default_css = TRUE, $optimize_css = TRUE);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AssetRendererInterface:: |
public | function | Renders the CSS assets for the given entities. | 1 |