You are here

public function CollectPathsEventTest::replacePaths in Tome 8

Emulates the replacePaths() listener.

Parameters

\Drupal\tome_static\Event\CollectPathsEvent $event: The collect paths event.

File

modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php, line 127

Class

CollectPathsEventTest
Tests collect paths event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function replacePaths(CollectPathsEvent $event) {
  $event
    ->replacePaths([
    '/my-new-path',
  ]);
}