function RouteProcessorManager::addOutbound

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

Adds an outbound processor object to the $outboundProcessors property.

Parameters

\Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface $processor: The processor object to add.

int $priority: The priority of the processor being added.

File

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

Class

RouteProcessorManager
Route processor manager.

Namespace

Drupal\Core\RouteProcessor

Code

public function addOutbound(OutboundRouteProcessorInterface $processor, $priority = 0) {
    $this->outboundProcessors[$priority][] = $processor;
    $this->sortedOutbound = [];
}

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