class AliasManager
The default alias manager implementation.
Hierarchy
- class \Drupal\Core\Path\AliasManager implements \Drupal\Core\Path\AliasManagerInterface, \Drupal\Core\CacheDecorator\CacheDecoratorInterface uses \Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait
- class \Drupal\path_alias\AliasManager implements \Drupal\path_alias\AliasManagerInterface extends \Drupal\Core\Path\AliasManager
Expanded class hierarchy of AliasManager
5 files declare their use of AliasManager
- AliasManagerTest.php in core/
modules/ path_alias/ tests/ src/ Unit/ AliasManagerTest.php - AliasTest.php in core/
modules/ path_alias/ tests/ src/ Kernel/ AliasTest.php - DeprecatedClassesTest.php in core/
modules/ path_alias/ tests/ src/ Unit/ DeprecatedClassesTest.php - DeprecatedServicesTest.php in core/
modules/ path_alias/ tests/ src/ Kernel/ DeprecatedServicesTest.php - PathProcessorTest.php in core/
tests/ Drupal/ Tests/ Core/ PathProcessor/ PathProcessorTest.php
2 string references to 'AliasManager'
- DeprecatedClassesTest::assertDeprecatedConstructorParameter in core/
modules/ path_alias/ tests/ src/ Unit/ DeprecatedClassesTest.php - Test that deprecation for the \Drupal\Core\Path\AliasManagerInterface.
- path_alias.services.yml in core/
modules/ path_alias/ path_alias.services.yml - core/modules/path_alias/path_alias.services.yml
1 service uses AliasManager
- path_alias.manager in core/
modules/ path_alias/ path_alias.services.yml - Drupal\path_alias\AliasManager
File
-
core/
modules/ path_alias/ src/ AliasManager.php, line 10
Namespace
Drupal\path_aliasView source
class AliasManager extends CoreAliasManager implements AliasManagerInterface {
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| AliasManager::$cache | protected | property | Cache backend service. | |
| AliasManager::$cacheKey | protected | property | The cache key to use when caching paths. | |
| AliasManager::$cacheNeedsWriting | protected | property | Whether the cache needs to be written. | |
| AliasManager::$deprecatedProperties | protected | property | ||
| AliasManager::$langcodePreloaded | protected | property | Whether preloaded path lookups has already been loaded. | |
| AliasManager::$languageManager | protected | property | Language manager for retrieving the default langcode when none is specified. | |
| AliasManager::$lookupMap | protected | property | Holds the map of path lookups per language. | |
| AliasManager::$noAlias | protected | property | Holds an array of paths that have no alias. | |
| AliasManager::$noPath | protected | property | Holds an array of aliases for which no path was found. | |
| AliasManager::$pathAliasRepository | protected | property | The path alias repository. | |
| AliasManager::$preloadedPathLookups | protected | property | Holds an array of previously looked up paths for the current request path. | |
| AliasManager::$whitelist | protected | property | Holds the array of whitelisted path aliases. | |
| AliasManager::cacheClear | public | function | Clear internal caches in alias manager. | Overrides AliasManagerInterface::cacheClear |
| AliasManager::getAliasByPath | public | function | Given a path, return the alias. | Overrides AliasManagerInterface::getAliasByPath |
| AliasManager::getPathByAlias | public | function | Given the alias, return the path it represents. | Overrides AliasManagerInterface::getPathByAlias |
| AliasManager::getRequestTime | protected | function | Wrapper method for REQUEST_TIME constant. | |
| AliasManager::pathAliasWhitelistRebuild | protected | function | Rebuild the path alias white list. | |
| AliasManager::setCacheKey | public | function | Specify the key to use when writing the cache. | Overrides CacheDecoratorInterface::setCacheKey |
| AliasManager::writeCache | public | function | Cache an array of the paths available on each page. We assume that aliases will be needed for the majority of these paths during subsequent requests, and load them in a single query during path alias lookup. |
Overrides CacheDecoratorInterface::writeCache |
| AliasManager::__construct | public | function | Constructs an AliasManager. | |
| DeprecatedServicePropertyTrait::__get | public | function | Allows to access deprecated/removed properties. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.