public function PathListenerBase::setPath

4 calls to PathListenerBase::setPath()
PathSubscriber::onKernelRequestDecodePath in drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
Decodes the path of the request.
PathSubscriber::onKernelRequestFrontPageResolve in drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
Resolve the front-page default path.
PathSubscriber::onKernelRequestPathResolve in drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
Resolve the system path.
PathSubscriber::onKernelRequestPathResolve in drupal/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/PathSubscriber.php
Resolve the system path based on some arbitrary rules.

File

drupal/core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php, line 22
Definition of Drupal\Core\EventSubscriber\PathListenerBase.

Class

PathListenerBase
Base class for listeners that are manipulating the path.

Namespace

Drupal\Core\EventSubscriber

Code

public function setPath(Request $request, $path) {
  $request->attributes
    ->set('system_path', $path);
}