public PathProcessorLanguage::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/modules/language/src/HttpKernel/PathProcessorLanguage.php, line 89
Class
- PathProcessorLanguage
- Processes the inbound path using path alias lookups.
Namespace
Drupal\language\HttpKernel
Code
1 2 3 4 5 6 7 8 9 10 11 12 | 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 ; } |
Please login to continue.