function State::resolveCacheMiss

Same name in other branches
  1. 10 core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::resolveCacheMiss()

Overrides CacheCollector::resolveCacheMiss

File

core/lib/Drupal/Core/State/State.php, line 65

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

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.