You are here

public function ModifyHtmlEvent::__construct in Tome 8

Constructs a ModifyHtmlEvent object.

Parameters

string $html: The page's HTML.

string $path: The current path.

File

modules/tome_static/src/Event/ModifyHtmlEvent.php, line 50

Class

ModifyHtmlEvent
Allows modules to modify the HTML of a static page before save.

Namespace

Drupal\tome_static\Event

Code

public function __construct($html, $path) {
  $this->html = $html;
  $this->path = $path;
}