function UrlGenerator::processRoute

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::processRoute()
  2. 8.9.x core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::processRoute()
  3. 10 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::processRoute()

Passes the route to the processor manager for altering before compilation.

Parameters

string $name: The route name.

\Symfony\Component\Routing\Route $route: The route object to process.

array $parameters: An array of parameters to be passed to the route compiler.

\Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route processors' bubbleable metadata.

2 calls to UrlGenerator::processRoute()
UrlGenerator::generateFromRoute in core/lib/Drupal/Core/Routing/UrlGenerator.php
Generates a URL or path for a specific route based on the given parameters.
UrlGenerator::getPathFromRoute in core/lib/Drupal/Core/Routing/UrlGenerator.php
Gets the internal path (system path) for a route.
1 method overrides UrlGenerator::processRoute()
NullGenerator::processRoute in core/lib/Drupal/Core/Routing/NullGenerator.php
Passes the route to the processor manager for altering before compilation.

File

core/lib/Drupal/Core/Routing/UrlGenerator.php, line 407

Class

UrlGenerator
Generates URLs from route names and parameters.

Namespace

Drupal\Core\Routing

Code

protected function processRoute(string $name, SymfonyRoute $route, array &$parameters, ?BubbleableMetadata $bubbleable_metadata = NULL) {
    $this->routeProcessor
        ->processOutbound($name, $route, $parameters, $bubbleable_metadata);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.