public function PagerPathSubscriber::modifyDestination in Tome 8
Reacts to a modify destination event.
Parameters
\Drupal\tome_static\Event\ModifyDestinationEvent $event: The event.
File
- modules/
tome_static/ src/ EventSubscriber/ PagerPathSubscriber.php, line 23
Class
- PagerPathSubscriber
- Converts pager query parameters to static paths.
Namespace
Drupal\tome_static\EventSubscriberCode
public function modifyDestination(ModifyDestinationEvent $event) {
$destination = $event
->getDestination();
$destination = $this
->modifyUrl($destination);
$event
->setDestination($destination);
}