Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. State.php

function 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;
}
RSS feed
Powered by Drupal