You are here

public function ModifyHtmlEventTest::addInvokePath in Tome 8

Emulates the addInvokePath() listener.

Parameters

\Drupal\tome_static\Event\ModifyHtmlEvent $event: The modify HTML event.

File

modules/tome_static/tests/src/Kernel/ModifyHtmlEventTest.php, line 97

Class

ModifyHtmlEventTest
Tests modify HTML event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function addInvokePath(ModifyHtmlEvent $event) {
  $event
    ->addInvokePath('/my-new-path');
  $event
    ->addInvokePath('/my-new-path-again');
}