You are here

public function RestResourceGetRouteProcessorBC::__construct in Drupal 8

Constructs a RestResourceGetRouteProcessorBC object.

Parameters

string[] $serializer_formats: The available serialization formats.

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

File

core/modules/rest/src/RouteProcessor/RestResourceGetRouteProcessorBC.php, line 37

Class

RestResourceGetRouteProcessorBC
Processes the BC REST routes, to ensure old route names continue to work.

Namespace

Drupal\rest\RouteProcessor

Code

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