public function PathProcessorAlias::processInbound in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/PathProcessor/PathProcessorAlias.php \Drupal\Core\PathProcessor\PathProcessorAlias::processInbound()
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 39 - Contains \Drupal\Core\PathProcessor\PathProcessorAlias.
Class
- PathProcessorAlias
- Processes the inbound path using path alias lookups.
Namespace
Drupal\Core\PathProcessorCode
public function processInbound($path, Request $request) {
$path = $this->aliasManager
->getPathByAlias($path);
return $path;
}