protected function SchemaCache::resolveCacheMiss

protected SchemaCache::resolveCacheMiss($offset)

Overrides DrupalCacheArray::resolveCacheMiss().

Overrides DrupalCacheArray::resolveCacheMiss

File

includes/bootstrap.inc, line 3276
Functions that need to be loaded on every Drupal request.

Class

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

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/SchemaCache::resolveCacheMiss/7.x