function RouteProcessorManager::processOutbound

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/RouteProcessor/RouteProcessorManager.php \Drupal\Core\RouteProcessor\RouteProcessorManager::processOutbound()
  2. 10 core/lib/Drupal/Core/RouteProcessor/RouteProcessorManager.php \Drupal\Core\RouteProcessor\RouteProcessorManager::processOutbound()
  3. 11.x core/lib/Drupal/Core/RouteProcessor/RouteProcessorManager.php \Drupal\Core\RouteProcessor\RouteProcessorManager::processOutbound()

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' bubbleable metadata.

Overrides OutboundRouteProcessorInterface::processOutbound

File

core/lib/Drupal/Core/RouteProcessor/RouteProcessorManager.php, line 49

Class

RouteProcessorManager
Route processor manager.

Namespace

Drupal\Core\RouteProcessor

Code

public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) {
    $processors = $this->getOutbound();
    foreach ($processors as $processor) {
        $processor->processOutbound($route_name, $route, $parameters, $bubbleable_metadata);
    }
}

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