LocaleLookup::__construct

public LocaleLookup::__construct($langcode, $context, StringStorageInterface $string_storage, CacheBackendInterface $cache, LockBackendInterface $lock, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, RequestStack $request_stack) Constructs a LocaleLookup object. Parameters string $langcode: The language code. string $context: The string context. \Drupal\locale\StringStorageInterface $string_storage: The string storage. \Drupal\Core\Cache\CacheBackendInterfac

LocaleLookup::resolveCacheMiss

protected LocaleLookup::resolveCacheMiss($offset) Resolves a cache miss. When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached. Parameters string $key: The offset that was requested. Return value mixed The value of the offset, or NULL if no value was found. Overrides CacheCollector::resolveCacheMiss File core/modules/locale/src/LocaleLookup.php, line 134 Class L

LocaleLookup::getCid

protected LocaleLookup::getCid() Gets the cache ID. Return value string Overrides CacheCollector::getCid File core/modules/locale/src/LocaleLookup.php, line 109 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected function getCid() { if (!isset($this->cid)) { // Add the current user's role IDs to the cache key, this ensures that, // for example, strings for admin menu items and settings forms are no

LocaleLookup::$stringStorage

The locale storage. Type: \Drupal\locale\StringStorageInterface File core/modules/locale/src/LocaleLookup.php, line 36 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $stringStorage;

LocaleLookup::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/locale/src/LocaleLookup.php, line 71 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $requestStack;

LocaleLookup::$lock

The lock backend that should be used. Type: \Drupal\Core\Lock\LockBackendInterface Overrides CacheCollector::$lock File core/modules/locale/src/LocaleLookup.php, line 50 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $lock;

LocaleLookup::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/locale/src/LocaleLookup.php, line 64 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $languageManager;

LocaleLookup::$langcode

A language code. Type: string File core/modules/locale/src/LocaleLookup.php, line 22 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $langcode;

LocaleLookup::$context

The msgctxt context. Type: string File core/modules/locale/src/LocaleLookup.php, line 29 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $context;

LocaleLookup::$configFactory

The configuration factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/modules/locale/src/LocaleLookup.php, line 57 Class LocaleLookup A cache collector to allow for dynamic building of the locale cache. Namespace Drupal\locale Code protected $configFactory;