You are here

public function CollectPathsEventTest::addPath in Tome 8

Emulates the addPath() listener.

Parameters

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

File

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

Class

CollectPathsEventTest
Tests collect paths event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function addPath(CollectPathsEvent $event) {
  $event
    ->addPath('/my-path');
}