You are here

public function RendererFactoryInterface::create in Entity Print 8.2

Same name and namespace in other branches
  1. 8 src/Renderer/RendererFactoryInterface.php \Drupal\entity_print\Renderer\RendererFactoryInterface::create()

Create a new entity renderer.

Parameters

mixed $item: The item we require a renderer for.

string $context: The type, currently supports entities but could change in the future.

Return value

\Drupal\entity_print\Renderer\RendererInterface The constructed renderer.

1 method overrides RendererFactoryInterface::create()
RendererFactory::create in src/Renderer/RendererFactory.php
Create a new entity renderer.

File

src/Renderer/RendererFactoryInterface.php, line 21

Class

RendererFactoryInterface
The renderer factory inteface.

Namespace

Drupal\entity_print\Renderer

Code

public function create($item, $context = 'entity');