public function PathSubscriber::onKernelRequestPathResolve

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php \Drupal\Core\EventSubscriber\PathSubscriber::onKernelRequestPathResolve()
  2. 9.x drupal/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/PathSubscriber.php \Drupal\url_alter_test\PathSubscriber::onKernelRequestPathResolve()

Resolve the system path.

Parameters

Symfony\Component\HttpKernel\Event\GetResponseEvent $event: The Event to process.

File

drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php, line 33
Definition of Drupal\Core\EventSubscriber\PathSubscriber.

Class

PathSubscriber
Access subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

public function onKernelRequestPathResolve(GetResponseEvent $event) {
  $request = $event
    ->getRequest();
  $path = $this
    ->extractPath($request);
  $path = $this->aliasManager
    ->getSystemPath($path);
  $this
    ->setPath($request, $path);
  $this->aliasManager
    ->setCacheKey($path);
}