You are here

interface RendererFactoryInterface in Entity Print 8.2

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

The renderer factory inteface.

Hierarchy

Expanded class hierarchy of RendererFactoryInterface

All classes that implement RendererFactoryInterface

1 file declares its use of RendererFactoryInterface
PrintBuilder.php in src/PrintBuilder.php

File

src/Renderer/RendererFactoryInterface.php, line 8

Namespace

Drupal\entity_print\Renderer
View source
interface RendererFactoryInterface {

  /**
   * Create a new entity renderer.
   *
   * @param mixed $item
   *   The item we require a renderer for.
   * @param string $context
   *   The type, currently supports entities but could change in the future.
   *
   * @return \Drupal\entity_print\Renderer\RendererInterface
   *   The constructed renderer.
   */
  public function create($item, $context = 'entity');

}

Members

Namesort descending Modifiers Type Description Overrides
RendererFactoryInterface::create public function Create a new entity renderer. 1