You are here

public function RendererFactoryInterface::create in Entity Print 8

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

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

File

src/Renderer/RendererFactoryInterface.php, line 16

Class

RendererFactoryInterface

Namespace

Drupal\entity_print\Renderer

Code

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