You are here

public function PrintHtmlAlterEvent::__construct in Entity Print 8.2

PrintHtmlAlterEvent constructor.

Parameters

string $html: The generated HTML.

array $entities: An array of entities we're rendering.

1 method overrides PrintHtmlAlterEvent::__construct()
PrintHtmlAlterTestEvent::__construct in tests/src/Kernel/PrintHtmlAlterTestEvent.php
PrintHtmlAlterTestEvent constructor.

File

src/Event/PrintHtmlAlterEvent.php, line 34

Class

PrintHtmlAlterEvent
An event to alter the HTML string.

Namespace

Drupal\entity_print\Event

Code

public function __construct(&$html, array $entities) {
  $this->html =& $html;
  $this->entities = $entities;
}