function RestResourceGetRouteProcessorBC::__construct
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\RouteProcessorCode
public function __construct(array $serializer_formats, RouteProviderInterface $route_provider) {
$this->serializerFormats = $serializer_formats;
$this->routeProvider = $route_provider;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.