function UserRouteAlterSubscriber::__construct

Same name in other branches
  1. 9 core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::__construct()
  2. 8.9.x core/modules/serialization/src/EventSubscriber/UserRouteAlterSubscriber.php \Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.