You are here

interface RendererFactoryInterface in Entity Print 8

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

Hierarchy

Expanded class hierarchy of RendererFactoryInterface

All classes that implement RendererFactoryInterface

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

File

src/Renderer/RendererFactoryInterface.php, line 5

Namespace

Drupal\entity_print\Renderer
View source
interface RendererFactoryInterface {

  /**
   * @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