public function MediaOembedPathSubscriber::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/ MediaOembedPathSubscriber.php, line 23
Class
- MediaOembedPathSubscriber
- Converts Media OEmbed 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);
}