You are here

public function PathProcessorManager::addInbound in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::addInbound()
  2. 10 core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::addInbound()

Adds an inbound processor object to the $inboundProcessors property.

Parameters

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

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

File

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

Class

PathProcessorManager
Path processor manager.

Namespace

Drupal\Core\PathProcessor

Code

public function addInbound(InboundPathProcessorInterface $processor, $priority = 0) {
  $this->inboundProcessors[$priority][] = $processor;
  $this->sortedInbound = [];
}