class RouteProcessor implements OutboundRouteProcessorInterface (View source)

Processes the backwards-compatibility layer for path alias routes.

Properties

protected RouteProviderInterface $routeProvider

The route provider.

Methods

__construct(RouteProviderInterface $route_provider)

Constructs a RouteProcessor 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(RouteProviderInterface $route_provider)

Constructs a RouteProcessor object.

Parameters

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