You are here

protected function StateWrapper::resolveCacheMiss in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resolveCacheMiss()
  2. 8 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resolveCacheMiss()
  3. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::resolveCacheMiss()

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

webprofiler/src/State/StateWrapper.php, line 99

Class

StateWrapper
Class StateWrapper.

Namespace

Drupal\webprofiler\State

Code

protected function resolveCacheMiss($key) {
  return $this->state
    ->resolveCacheMiss($key);
}