function State::resolveCacheMiss
Same name in other branches
- 11.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::resolveCacheMiss()
Overrides CacheCollector::resolveCacheMiss
File
-
core/
lib/ Drupal/ Core/ State/ State.php, line 86
Class
- State
- Provides the state system using a key value store.
Namespace
Drupal\Core\StateCode
protected function resolveCacheMiss($key) {
$value = $this->keyValueStore
->get($key);
$this->storage[$key] = $value;
$this->persist($key);
return $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.