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;
}
doc_Drupal
2016-10-29 09:33:29
Comments
Leave a Comment

Please login to continue.