public function PathProcessorAlias::processInbound

public PathProcessorAlias::processInbound($path, Request $request)

Processes the inbound path.

Parameters

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

\Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request.

Return value

string The processed path.

Overrides InboundPathProcessorInterface::processInbound

File

core/lib/Drupal/Core/PathProcessor/PathProcessorAlias.php, line 34

Class

PathProcessorAlias
Processes the inbound path using path alias lookups.

Namespace

Drupal\Core\PathProcessor

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!PathProcessor!PathProcessorAlias.php/function/PathProcessorAlias::processInbound/8.1.x