function PathProcessorLanguage::processInbound

Same name and namespace in other branches
  1. 9 core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::processInbound()
  2. 10 core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::processInbound()
  3. 11.x core/modules/language/src/HttpKernel/PathProcessorLanguage.php \Drupal\language\HttpKernel\PathProcessorLanguage::processInbound()

Overrides InboundPathProcessorInterface::processInbound

File

core/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 88

Class

PathProcessorLanguage
Processes the inbound path using path alias lookups.

Namespace

Drupal\language\HttpKernel

Code

public function processInbound($path, Request $request) {
    if (!empty($path)) {
        $scope = 'inbound';
        if (!isset($this->processors[$scope])) {
            $this->initProcessors($scope);
        }
        foreach ($this->processors[$scope] as $instance) {
            $path = $instance->processInbound($path, $request);
        }
    }
    return $path;
}

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