You are here

public function PathPlaceholderEventTest::setPath in Tome 8

Emulates the setPath() listener.

Parameters

\Drupal\tome_static\Event\PathPlaceholderEvent $event: The path placeholder event.

File

modules/tome_static/tests/src/Kernel/PathPlaceholderEventTest.php, line 64

Class

PathPlaceholderEventTest
Tests path placeholder event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function setPath(PathPlaceholderEvent $event) {
  $event
    ->setPath('/my-path-replaced');
}