class PathAliasSubscriber

Same name and namespace in other branches
  1. 11.x core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber
  2. 10 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber
  3. 9 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber

Provides a path subscriber that converts path aliases.

Hierarchy

Expanded class hierarchy of PathAliasSubscriber

1 file declares its use of PathAliasSubscriber
DeprecatedClassesTest.php in core/modules/path_alias/tests/src/Unit/DeprecatedClassesTest.php
1 string reference to 'PathAliasSubscriber'
path_alias.services.yml in core/modules/path_alias/path_alias.services.yml
core/modules/path_alias/path_alias.services.yml
1 service uses PathAliasSubscriber
path_alias.subscriber in core/modules/path_alias/path_alias.services.yml
Drupal\path_alias\EventSubscriber\PathAliasSubscriber

File

core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php, line 10

Namespace

Drupal\path_alias\EventSubscriber
View source
class PathAliasSubscriber extends PathSubscriber {

}

Members

Title Sort descending Modifiers Object type Summary
PathSubscriber::$aliasManager protected property The alias manager that caches alias lookups based on the request.
PathSubscriber::$currentPath protected property The current path.
PathSubscriber::getSubscribedEvents public static function Registers the methods in this class that should be listeners.
PathSubscriber::onKernelController public function Sets the cache key on the alias manager cache decorator.
PathSubscriber::onKernelTerminate public function Ensures system paths for the request get cached.
PathSubscriber::__construct public function Constructs a new PathSubscriber instance.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.