function DeprecatedUserRoutesSubscriber::getSubscribedEvents
Same name and namespace in other branches
- 11.x core/modules/rest/src/EventSubscriber/DeprecatedUserRoutesSubscriber.php \Drupal\rest\EventSubscriber\DeprecatedUserRoutesSubscriber::getSubscribedEvents()
File
-
core/
modules/ rest/ src/ EventSubscriber/ DeprecatedUserRoutesSubscriber.php, line 33
Class
- DeprecatedUserRoutesSubscriber
- Replace the deprecated user module routes with our own.
Namespace
Drupal\rest\EventSubscriberCode
public static function getSubscribedEvents() : array {
$events[RoutingEvents::ALTER] = 'onRouteAlter';
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.