public function RendererFactoryInterface::create in Entity Print 8.2
Same name and namespace in other branches
- 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\RendererCode
public function create($item, $context = 'entity');