class PathAliasSubscriber
Same name and namespace in other branches
- 11.x core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber
- 10 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber
- 9 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber
Provides a path subscriber that converts path aliases.
Hierarchy
- class \Drupal\Core\EventSubscriber\PathSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\path_alias\EventSubscriber\PathAliasSubscriber extends \Drupal\Core\EventSubscriber\PathSubscriber
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\EventSubscriberView 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.