RouteProcessorCsrf
class RouteProcessorCsrf implements OutboundRouteProcessorInterface, TrustedCallbackInterface (View source)
Processes the outbound route to handle the CSRF token.
Properties
| protected CsrfTokenGenerator | $csrfToken | The CSRF token generator. |
Methods
The
processOutbound(string $route_name, Route $route, array $parameters, BubbleableMetadata $bubbleable_metadata = NULL)
Processes the outbound route.
array
renderPlaceholderCsrfToken(string $path)
lazy_builder callback; gets a CSRF token for the given path.
static string[]
trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Details
__construct(CsrfTokenGenerator $csrf_token)
Constructs a RouteProcessorCsrf object.
The
processOutbound(string $route_name, Route $route, array $parameters, BubbleableMetadata $bubbleable_metadata = NULL)
Processes the outbound route.
array
renderPlaceholderCsrfToken(string $path)
lazy_builder callback; gets a CSRF token for the given path.
static string[]
trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().