function AliasPathProcessor::processInbound

Same name and namespace in other branches
  1. 11.x core/modules/path_alias/src/PathProcessor/AliasPathProcessor.php \Drupal\path_alias\PathProcessor\AliasPathProcessor::processInbound()

File

core/modules/path_alias/src/PathProcessor/AliasPathProcessor.php, line 36

Class

AliasPathProcessor
Processes the inbound path using path alias lookups.

Namespace

Drupal\path_alias\PathProcessor

Code

public function processInbound($path, Request $request) {
  $path = $this->aliasManager
    ->getPathByAlias($path);
  return $path;
}

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