You are here

public function UserRouteAlterSubscriber::__construct in Drupal 9

Same name and namespace in other branches
  1. 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\EventSubscriber

Code

public function __construct(array $serializer_formats) {
  $this->serializerFormats = $serializer_formats;
}