public function CollectPathsEventTest::addPaths in Tome 8
Emulates the addPaths() listener.
Parameters
\Drupal\tome_static\Event\CollectPathsEvent $event: The collect paths event.
File
- modules/
tome_static/ tests/ src/ Kernel/ CollectPathsEventTest.php, line 107
Class
- CollectPathsEventTest
- Tests collect paths event class.
Namespace
Drupal\Tests\tome_static\KernelCode
public function addPaths(CollectPathsEvent $event) {
$event
->addPaths([
'/my-path',
'/my-second-path',
]);
}