class AliasManager in Drupal 8
Same name in this branch
- 8 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager
- 8 core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager
Same name and namespace in other branches
- 9 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager
The default alias manager implementation.
Hierarchy
- class \Drupal\Core\Path\AliasManager implements CacheDecoratorInterface, AliasManagerInterface uses DeprecatedServicePropertyTrait
- class \Drupal\path_alias\AliasManager implements AliasManagerInterface
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
1 string reference to 'AliasManager'
- 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AliasManager:: |
protected | property | Cache backend service. | |
AliasManager:: |
protected | property | The cache key to use when caching paths. | |
AliasManager:: |
protected | property | Whether the cache needs to be written. | |
AliasManager:: |
protected | property | ||
AliasManager:: |
protected | property | Whether preloaded path lookups has already been loaded. | |
AliasManager:: |
protected | property | Language manager for retrieving the default langcode when none is specified. | |
AliasManager:: |
protected | property | Holds the map of path lookups per language. | |
AliasManager:: |
protected | property | Holds an array of paths that have no alias. | |
AliasManager:: |
protected | property | Holds an array of aliases for which no path was found. | |
AliasManager:: |
protected | property | The path alias repository. | |
AliasManager:: |
protected | property | Holds an array of previously looked up paths for the current request path. | |
AliasManager:: |
protected | property | Holds the array of whitelisted path aliases. | |
AliasManager:: |
public | function |
Clear internal caches in alias manager. Overrides AliasManagerInterface:: |
|
AliasManager:: |
public | function |
Given a path, return the alias. Overrides AliasManagerInterface:: |
|
AliasManager:: |
public | function |
Given the alias, return the path it represents. Overrides AliasManagerInterface:: |
|
AliasManager:: |
protected | function | Wrapper method for REQUEST_TIME constant. | |
AliasManager:: |
protected | function | Rebuild the path alias white list. | |
AliasManager:: |
public | function |
Specify the key to use when writing the cache. Overrides CacheDecoratorInterface:: |
|
AliasManager:: |
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:: |
|
AliasManager:: |
public | function | Constructs an AliasManager. | |
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. |