class RestResourceGetRouteProcessorBC implements OutboundRouteProcessorInterface (View source)

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

Properties

protected string[] $serializerFormats

The available serialization formats.

protected RouteProviderInterface $routeProvider

The route provider.

Methods

__construct(array $serializer_formats, RouteProviderInterface $route_provider)

Constructs a RestResourceGetRouteProcessorBC object.

The
processOutbound(string $route_name, Route $route, array $parameters, BubbleableMetadata $bubbleable_metadata = NULL)

Processes the outbound route.

static 
overwriteRoute(Route $target_route, Route $source_route)

Overwrites one route's metadata with the other's.

Details

__construct(array $serializer_formats, RouteProviderInterface $route_provider)

Constructs a RestResourceGetRouteProcessorBC object.

Parameters

array $serializer_formats

The available serialization formats.

RouteProviderInterface $route_provider

The route provider.

The processOutbound(string $route_name, Route $route, array $parameters, BubbleableMetadata $bubbleable_metadata = NULL)

Processes the outbound route.

Parameters

string $route_name

The route name.

Route $route

The outbound route to process.

array $parameters

An array of parameters to be passed to the route compiler. Passed by reference.

BubbleableMetadata $bubbleable_metadata

(optional) Object to collect route processors' bubbleable metadata.

Return Value

The

processed path.

static protected overwriteRoute(Route $target_route, Route $source_route)

Overwrites one route's metadata with the other's.

Parameters

Route $target_route

The route whose metadata to overwrite.

Route $source_route

The route whose metadata to read from.

See also

Route