function PathProcessorManager::addOutbound

Same name in other branches
  1. 9 core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::addOutbound()
  2. 8.9.x core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::addOutbound()
  3. 11.x core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::addOutbound()

Adds an outbound processor object to the $outboundProcessors property.

Parameters

\Drupal\Core\PathProcessor\OutboundPathProcessorInterface $processor: The processor object to add.

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

File

core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php, line 97

Class

PathProcessorManager
Path processor manager.

Namespace

Drupal\Core\PathProcessor

Code

public function addOutbound(OutboundPathProcessorInterface $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.