Drupal 8  8.0.2
RouteProcessorCsrf Class Reference
Inheritance diagram for RouteProcessorCsrf:

Public Member Functions

 __construct (CsrfTokenGenerator $csrf_token)
 
 processOutbound ($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata=NULL)
 
 renderPlaceholderCsrfToken ($path)
 

Protected Attributes

 $csrfToken
 

Detailed Description

Processes the outbound route to handle the CSRF token.

Constructor & Destructor Documentation

__construct ( CsrfTokenGenerator  $csrf_token)

Constructs a RouteProcessorCsrf object.

Parameters
\Drupal\Core\Access\CsrfTokenGenerator$csrf_tokenThe CSRF token generator.

References Drupal\csrfToken().

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\csrfToken().

Here is the call graph for this function:

renderPlaceholderCsrfToken (   $path)

#lazy_builder callback; gets a CSRF token for the given path.

Parameters
string$pathThe path to get a CSRF token for.
Returns
array A renderable array representing the CSRF token.

References Drupal\csrfToken().

Here is the call graph for this function:


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