public function UserRouteAlterSubscriber::__construct in Drupal 9
Same name and namespace in other branches
- 8 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;
}