interface AliasPrefixListInterface

Cache a list of valid alias prefixes.

The list contains the first element of the router paths of all aliases. For example, if /node/12345 has an alias then "node" is added to the prefix list. This optimization allows skipping the lookup for every /user/{user} path if "user" is not in the list.

Hierarchy

Expanded class hierarchy of AliasPrefixListInterface

All classes that implement AliasPrefixListInterface

File

core/modules/path_alias/src/AliasPrefixListInterface.php, line 15

Namespace

Drupal\path_alias
View source
interface AliasPrefixListInterface extends CacheCollectorInterface {

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CacheCollectorInterface::clear public function Clears the collected cache entry. 2
CacheCollectorInterface::delete public function Deletes the element. 2
CacheCollectorInterface::get public function Gets value from the cache. 2
CacheCollectorInterface::has public function Returns whether data exists for this key. 2
CacheCollectorInterface::reset public function Resets the local cache. 2
CacheCollectorInterface::set public function Sets cache data. 2

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.