You are here

interface RendererInterface in Entity Print 8

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

Hierarchy

Expanded class hierarchy of RendererInterface

All classes that implement RendererInterface

File

src/Renderer/RendererInterface.php, line 7

Namespace

Drupal\entity_print\Renderer
View source
interface RendererInterface {

  /**
   * Generate the HTML for our entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity we're rendering.
   * @param bool $use_default_css
   *   TRUE if we should inject our default CSS otherwise FALSE.
   * @param bool $optimize_css
   *   TRUE if we should compress the CSS otherwise FALSE.
   *
   * @return string
   *   The generated HTML.
   *
   * @throws \Exception
   */
  public function getHtml(EntityInterface $entity, $use_default_css, $optimize_css);

  /**
   * Generate the HTML for our entity.
   *
   * @param array $entities
   *   An array of entities to generate the HTML for.
   * @param bool $use_default_css
   *   TRUE if we should inject our default CSS otherwise FALSE.
   * @param bool $optimize_css
   *   TRUE if we should compress the CSS otherwise FALSE.
   *
   * @return string
   *   The generated HTML.
   *
   * @throws \Exception
   */
  public function getHtmlMultiple($entities, $use_default_css, $optimize_css);

}

Members

Namesort descending Modifiers Type Description Overrides
RendererInterface::getHtml public function Generate the HTML for our entity. 1
RendererInterface::getHtmlMultiple public function Generate the HTML for our entity. 1