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