public function PathSubscriber::onKernelRequestPathResolve

Same name in this branch

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);
}