You are here

class PathAliasSubscriber in Drupal 8

Same name and namespace in other branches
  1. 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

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

Namesort descending Modifiers Type Description Overrides
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.