You are here

public function PathProcessorManager::processInbound in Drupal 8

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

Processes the inbound path.

Implementations may make changes to the request object passed in but should avoid all other side effects. This method can be called to process requests other than the current request.

Parameters

string $path: The path to process, with a leading slash.

\Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the request to process. Note, if this method is being called via the path_processor_manager service and is not part of routing, the current request object must be cloned before being passed in.

Return value

string The processed path.

Overrides InboundPathProcessorInterface::processInbound

File

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

Class

PathProcessorManager
Path processor manager.

Namespace

Drupal\Core\PathProcessor

Code

public function processInbound($path, Request $request) {
  $processors = $this
    ->getInbound();
  foreach ($processors as $processor) {
    $path = $processor
      ->processInbound($path, $request);
  }
  return $path;
}