public static function RedirectLeadingSlashesSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php \Drupal\Core\EventSubscriber\RedirectLeadingSlashesSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ RedirectLeadingSlashesSubscriber.php, line 44
Class
- RedirectLeadingSlashesSubscriber
- Redirects paths starting with multiple slashes to a single slash.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'redirect',
1000,
];
return $events;
}