You are here

RendererFactoryInterface.php in Entity Print 8.2

Same filename and directory in other branches
  1. 8 src/Renderer/RendererFactoryInterface.php

File

src/Renderer/RendererFactoryInterface.php
View source
<?php

namespace Drupal\entity_print\Renderer;


/**
 * The renderer factory inteface.
 */
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');

}

Interfaces

Namesort descending Description
RendererFactoryInterface The renderer factory inteface.