Drupal 8  8.0.2
LocaleLookup Class Reference
Inheritance diagram for LocaleLookup:

Public Member Functions

 __construct ($langcode, $context, StringStorageInterface $string_storage, CacheBackendInterface $cache, LockBackendInterface $lock, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, RequestStack $request_stack)
- 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

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

Protected Attributes

- Protected Attributes inherited from CacheCollector
 $keysToPersist = array()
 $keysToRemove = array()
 $storage = array()
 $cacheInvalidated = FALSE
 $cacheLoaded = FALSE

Detailed Description

A cache collector to allow for dynamic building of the locale cache.

Constructor & Destructor Documentation

__construct (   $langcode,
StringStorageInterface  $string_storage,
CacheBackendInterface  $cache,
LockBackendInterface  $lock,
ConfigFactoryInterface  $config_factory,
LanguageManagerInterface  $language_manager,
RequestStack  $request_stack 

Constructs a LocaleLookup object.

string$langcodeThe language code.
string$contextThe string context.
\Drupal\locale\StringStorageInterface$string_storageThe string storage.
\Drupal\Core\Cache\CacheBackendInterface$cacheThe cache backend.
\Drupal\Core\Lock\LockBackendInterface$lockThe lock backend.
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe config factory.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Symfony\Component\HttpFoundation\RequestStack$request_stackThe request stack.

References Drupal\cache(), Drupal\configFactory(), Drupal\languageManager(), Drupal\lock(), and Drupal\requestStack().

Here is the call graph for this function:

Member Function Documentation

getCid ( )


References Drupal\currentUser().

Here is the call graph for this function:

resolveCacheMiss (   $offset)


References Drupal\configFactory(), Drupal\languageManager(), CacheCollector\persist(), Drupal\requestStack(), and Drupal\VERSION.

Here is the call graph for this function:

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