function UserRouteAlterSubscriber::__construct
Same name in other branches
- 9 core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::__construct()
- 8.9.x core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::__construct()
- 10 core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::__construct()
UserRouteAlterSubscriber constructor.
Parameters
array $serializer_formats: The available serializer formats.
File
-
core/
modules/ serialization/ src/ EventSubscriber/ UserRouteAlterSubscriber.php, line 27
Class
- UserRouteAlterSubscriber
- Alters user authentication routes to support additional serialization formats.
Namespace
Drupal\serialization\EventSubscriberCode
public function __construct(array $serializer_formats) {
$this->serializerFormats = $serializer_formats;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.