protected function SchemaCache::resolveCacheMiss

Implements CacheArray::resolveCacheMiss().

Overrides CacheArray::resolveCacheMiss

File

drupal/core/lib/Drupal/Core/Utility/SchemaCache.php, line 28
Definition of SchemaCache

Class

SchemaCache
Extends CacheArray to allow for dynamic building of the schema cache.

Namespace

Drupal\Core\Utility

Code

protected function resolveCacheMiss($offset) {
  $complete_schema = drupal_get_complete_schema();
  $value = isset($complete_schema[$offset]) ? $complete_schema[$offset] : NULL;
  $this->storage[$offset] = $value;
  $this
    ->persist($offset);
  return $value;
}