public function ViewRenderer::render in Entity Print 8.2
Gets the renderable for this entity.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: The entities we're rendering.
Return value
array The renderable array for the entity.
Overrides RendererInterface::render
File
- modules/
entity_print_views/ src/ Renderer/ ViewRenderer.php, line 31
Class
- ViewRenderer
- Providers a renderer for Views.
Namespace
Drupal\entity_print_views\RendererCode
public function render(array $views) {
return array_map([
$this,
'renderSingle',
], $views);
}