Drupal 8  8.0.2
AliasWhitelist Class Reference
Inheritance diagram for AliasWhitelist:

Public Member Functions

 __construct ($cid, CacheBackendInterface $cache, LockBackendInterface $lock, StateInterface $state, AliasStorageInterface $alias_storage)
 
 get ($offset)
 
 resolveCacheMiss ($root)
 
 clear ()
 
- Public Member Functions inherited from CacheCollector
 __construct ($cid, CacheBackendInterface $cache, LockBackendInterface $lock, array $tags=array())
 
 has ($key)
 
 get ($key)
 
 set ($key, $value)
 
 delete ($key)
 
 reset ()
 
 clear ()
 
 destruct ()
 

Protected Member Functions

 lazyLoadCache ()
 
 loadMenuPathRoots ()
 
- Protected Member Functions inherited from CacheCollector
 getCid ()
 
 persist ($key, $persist=TRUE)
 
 resolveCacheMiss ($key)
 
 updateCache ($lock=TRUE)
 
 normalizeLockName ($cid)
 
 lazyLoadCache ()
 
 invalidateCache ()
 

Protected Attributes

 $state
 
 $aliasStorage
 
- Protected Attributes inherited from CacheCollector
 $cid
 
 $tags
 
 $cache
 
 $lock
 
 $keysToPersist = array()
 
 $keysToRemove = array()
 
 $storage = array()
 
 $cacheCreated
 
 $cacheInvalidated = FALSE
 
 $cacheLoaded = FALSE
 

Detailed Description

Extends CacheCollector to build the path alias whitelist over time.

Constructor & Destructor Documentation

__construct (   $cid,
CacheBackendInterface  $cache,
LockBackendInterface  $lock,
StateInterface  $state,
AliasStorageInterface  $alias_storage 
)

Constructs an AliasWhitelist object.

Parameters
string$cidThe cache id to use.
\Drupal\Core\Cache\CacheBackendInterface$cacheThe cache backend.
\Drupal\Core\Lock\LockBackendInterface$lockThe lock backend.
\Drupal\Core\State\StateInterface$stateThe state keyvalue store.
\Drupal\Core\Path\AliasStorageInterface$alias_storageThe alias storage service.

References Drupal\state().

Here is the call graph for this function:

Member Function Documentation

clear ( )

{Clears the collected cache entry.}

Implements CacheCollectorInterface.

References AliasWhitelist\loadMenuPathRoots().

Here is the call graph for this function:

get (   $offset)

{Gets value from the cache.

Parameters
string$keyKey that identifies the data.
Returns
mixed The corresponding cache data.
}

Implements CacheCollectorInterface.

References AliasWhitelist\lazyLoadCache(), and AliasWhitelist\resolveCacheMiss().

Here is the call graph for this function:

lazyLoadCache ( )
protected

{}

References AliasWhitelist\loadMenuPathRoots().

Referenced by AliasWhitelist\get().

Here is the call graph for this function:

Here is the caller graph for this function:

loadMenuPathRoots ( )
protected

Loads menu path roots to prepopulate cache.

References CacheCollector\persist(), and Drupal\state().

Referenced by AliasWhitelist\clear(), and AliasWhitelist\lazyLoadCache().

Here is the call graph for this function:

Here is the caller graph for this function:

resolveCacheMiss (   $root)

{}

References CacheCollector\persist().

Referenced by AliasWhitelist\get().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: