function 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.