You are here

public function ModifyDestinationEventTest::setDestination in Tome 8

Emulates the setDestination() listener.

Parameters

\Drupal\tome_static\Event\ModifyDestinationEvent $event: The modify destination event.

File

modules/tome_static/tests/src/Kernel/ModifyDestinationEventTest.php, line 53

Class

ModifyDestinationEventTest
Tests modify destination event class.

Namespace

Drupal\Tests\tome_static\Kernel

Code

public function setDestination(ModifyDestinationEvent $event) {
  $event
    ->setDestination('/my-new-destination');
}