public static function PreviewLinkRouteEventSubscriber::getSubscribedEvents in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/PreviewLinkRouteEventSubscriber.php \Drupal\preview_link\EventSubscriber\PreviewLinkRouteEventSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ PreviewLinkRouteEventSubscriber.php, line 134
Class
- PreviewLinkRouteEventSubscriber
- Modifies canonical entity routing to redirect to preview link.
Namespace
Drupal\preview_link\EventSubscriberCode
public static function getSubscribedEvents() : array {
// Needs to be higher than ExceptionLoggingSubscriber::onError (priority 50)
// so exception is not logged. Larger numbers are earlier:
$events[KernelEvents::EXCEPTION][] = [
'onException',
51,
];
return $events;
}