Drupal 8  8.0.2
RouteProcessorCurrent Class Reference
Inheritance diagram for RouteProcessorCurrent:

Public Member Functions

 __construct (RouteMatchInterface $route_match)
 
 processOutbound ($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata=NULL)
 

Protected Attributes

 $routeMatch
 

Detailed Description

Provides a route processor to replace <current>.

Constructor & Destructor Documentation

__construct ( RouteMatchInterface  $route_match)

Constructs a new RouteProcessorCurrent.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match.

References Drupal\routeMatch().

Here is the call graph for this function:

Member Function Documentation

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

{Processes the outbound route.

Parameters
string$route_nameThe route name.
\Symfony\Component\Routing\Route$routeThe outbound route to process.
array$parametersAn array of parameters to be passed to the route compiler. Passed by reference.
\Drupal\Core\Render\BubbleableMetadata$bubbleable_metadata(optional) Object to collect route processors' bubbleable metadata.
Returns
The processed path.
}

Implements OutboundRouteProcessorInterface.

References Drupal\routeMatch().

Here is the call graph for this function:


The documentation for this class was generated from the following file: