class RouteProcessorCurrent implements OutboundRouteProcessorInterface (View source)

Provides a route processor to replace .

Properties

protected RouteMatchInterface $routeMatch

The current route match.

Methods

__construct(RouteMatchInterface $route_match)

Constructs a new RouteProcessorCurrent.

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

Processes the outbound route.

Details

__construct(RouteMatchInterface $route_match)

Constructs a new RouteProcessorCurrent.

Parameters

RouteMatchInterface $route_match

The current route match.

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.