You are here

public static function UserRouteAlterSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::getSubscribedEvents()
  2. 10 core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::getSubscribedEvents()

File

core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php, line 34

Class

UserRouteAlterSubscriber
Alters user authentication routes to support additional serialization formats.

Namespace

Drupal\serialization\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[RoutingEvents::ALTER][] = 'onRoutingAlterAddFormats';
  return $events;
}