class AliasWhitelist
Cache a list of valid alias prefixes.
Hierarchy
- class \Drupal\Core\Cache\CacheCollector implements \Drupal\Core\Cache\CacheCollectorInterface, \Drupal\Core\DestructableInterface
- class \Drupal\path_alias\AliasPrefixList implements \Drupal\path_alias\AliasPrefixListInterface extends \Drupal\Core\Cache\CacheCollector
- class \Drupal\path_alias\AliasWhitelist extends \Drupal\path_alias\AliasPrefixList
- class \Drupal\path_alias\AliasPrefixList implements \Drupal\path_alias\AliasPrefixListInterface extends \Drupal\Core\Cache\CacheCollector
Expanded class hierarchy of AliasWhitelist
Deprecated
in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixList instead.
See also
https://www.drupal.org/node/3467559
1 string reference to 'AliasWhitelist'
- path_alias.services.yml in core/
modules/ path_alias/ path_alias.services.yml - core/modules/path_alias/path_alias.services.yml
1 service uses AliasWhitelist
- path_alias.whitelist in core/
modules/ path_alias/ path_alias.services.yml - Drupal\path_alias\AliasWhitelist
File
-
core/
modules/ path_alias/ src/ AliasWhitelist.php, line 15
Namespace
Drupal\path_aliasView source
class AliasWhitelist extends AliasPrefixList {
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
|---|---|---|---|---|---|
| AliasPrefixList::$pathAliasRepository | protected | property | The path alias repository. | ||
| AliasPrefixList::$state | protected | property | The Key/Value Store to use for state. | ||
| AliasPrefixList::clear | public | function | Clears the collected cache entry. | Overrides CacheCollector::clear | |
| AliasPrefixList::get | public | function | Gets value from the cache. | Overrides CacheCollector::get | |
| AliasPrefixList::lazyLoadCache | protected | function | Loads the cache if not already done. | Overrides CacheCollector::lazyLoadCache | |
| AliasPrefixList::loadMenuPathRoots | protected | function | Loads menu path roots to prepopulate cache. | ||
| AliasPrefixList::resolveCacheMiss | public | function | Resolves a cache miss. | Overrides CacheCollector::resolveCacheMiss | |
| AliasPrefixList::__construct | public | function | Constructs an AliasPrefixList object. | Overrides CacheCollector::__construct | |
| CacheCollector::$cache | protected | property | The cache backend that should be used. | 1 | |
| CacheCollector::$cacheCreated | protected | property | Stores the cache creation time. | ||
| CacheCollector::$cacheInvalidated | protected | property | Flag that indicates of the cache has been invalidated. | ||
| CacheCollector::$cacheLoaded | protected | property | Indicates if the collected cache was already loaded. | ||
| CacheCollector::$cid | protected | property | The cache id that is used for the cache entry. | ||
| CacheCollector::$keysToPersist | protected | property | An array of keys to add to the cache on service termination. | ||
| CacheCollector::$keysToRemove | protected | property | An array of keys to remove from the cache on service termination. | ||
| CacheCollector::$lock | protected | property | The lock backend that should be used. | 1 | |
| CacheCollector::$storage | protected | property | Storage for the data itself. | ||
| CacheCollector::$tags | protected | property | A list of tags that are used for the cache entry. | ||
| CacheCollector::delete | public | function | Deletes the element. | Overrides CacheCollectorInterface::delete | 1 |
| CacheCollector::destruct | public | function | Performs destruct operations. | Overrides DestructableInterface::destruct | |
| CacheCollector::getCid | protected | function | Gets the cache ID. | 3 | |
| CacheCollector::has | public | function | Returns whether data exists for this key. | Overrides CacheCollectorInterface::has | 1 |
| CacheCollector::invalidateCache | protected | function | Invalidate the cache. | ||
| CacheCollector::persist | protected | function | Flags an offset value to be written to the persistent cache. | ||
| CacheCollector::reset | public | function | Resets the local cache. | Overrides CacheCollectorInterface::reset | 1 |
| CacheCollector::set | public | function | Implements \Drupal\Core\Cache\CacheCollectorInterface::set(). | Overrides CacheCollectorInterface::set | 3 |
| CacheCollector::updateCache | protected | function | Writes a value to the persistent cache immediately. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.