RouteProcessorCurrent::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php, line 19 Class RouteProcessorCurrent Provides a route processor to replace <current>. Namespace Drupal\Core\RouteProcessor Code protected $routeMatch;

RouteProcessorCurrent

Provides a route processor to replace <current>. Hierarchy class \Drupal\Core\RouteProcessor\RouteProcessorCurrent implements OutboundRouteProcessorInterface File core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php, line 12 Namespace Drupal\Core\RouteProcessor Members Name Modifiers Type Description RouteProcessorCurrent::$routeMatch protected property The current route match. RouteProcessorCurrent::processOutbound public function Processes the ou

RouteProcessorCsrf::__construct

RouteProcessorCsrf::__construct(CsrfTokenGenerator $csrf_token) Constructs a RouteProcessorCsrf object. Parameters \Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The CSRF token generator. File core/lib/Drupal/Core/Access/RouteProcessorCsrf.php, line 27 Class RouteProcessorCsrf Processes the outbound route to handle the CSRF token. Namespace Drupal\Core\Access Code function __construct(CsrfTokenGenerator $csrf_token) { $this->csrfToken = $csrf_token; }

RouteProcessorCsrf::renderPlaceholderCsrfToken

public RouteProcessorCsrf::renderPlaceholderCsrfToken($path) #lazy_builder callback; gets a CSRF token for the given path. Parameters string $path: The path to get a CSRF token for. Return value array A renderable array representing the CSRF token. File core/lib/Drupal/Core/Access/RouteProcessorCsrf.php, line 71 Class RouteProcessorCsrf Processes the outbound route to handle the CSRF token. Namespace Drupal\Core\Access Code public function renderPlaceholderCsrfToken($path) { return

RouteProcessorCsrf::processOutbound

public RouteProcessorCsrf::processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) Processes the outbound route. Parameters string $route_name: The route name. \Symfony\Component\Routing\Route $route: The outbound route to process. array $parameters: An 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'

RouteProcessorCsrf::$csrfToken

The CSRF token generator. Type: \Drupal\Core\Access\CsrfTokenGenerator File core/lib/Drupal/Core/Access/RouteProcessorCsrf.php, line 19 Class RouteProcessorCsrf Processes the outbound route to handle the CSRF token. Namespace Drupal\Core\Access Code protected $csrfToken;

RouteProcessorCsrf

Processes the outbound route to handle the CSRF token. Hierarchy class \Drupal\Core\Access\RouteProcessorCsrf implements OutboundRouteProcessorInterface File core/lib/Drupal/Core/Access/RouteProcessorCsrf.php, line 12 Namespace Drupal\Core\Access Members Name Modifiers Type Description RouteProcessorCsrf::$csrfToken protected property The CSRF token generator. RouteProcessorCsrf::processOutbound public function Processes the outbound route. Overrides OutboundRout

RoutePreloader::__construct

public RoutePreloader::__construct(RouteProviderInterface $route_provider, StateInterface $state, CacheBackendInterface $cache) Constructs a new RoutePreloader. Parameters \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider. \Drupal\Core\State\StateInterface $state: The state key value store. \Drupal\Core\Cache\CacheBackendInterface $cache: File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 59 Class RoutePreloader Defines a class which preloads non-admi

RoutePreloader::onRequest

public RoutePreloader::onRequest(KernelEvent $event) Loads all non-admin routes right before the actual page is rendered. Parameters \Symfony\Component\HttpKernel\Event\KernelEvent $event: The event to process. File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 71 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code public function onRequest(KernelEvent $event) { // Only preload on normal HTML pages, as they will display me

RoutePreloader::onFinishedRoutes

public RoutePreloader::onFinishedRoutes(Event $event) Store the non admin routes in state when the route building is finished. Parameters \Symfony\Component\EventDispatcher\Event $event: The route finish event. File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 115 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code public function onFinishedRoutes(Event $event) { $this->state->set('routing.non_admin_routes', $this-&