function SchemaCache::resolveCacheMiss
Overrides DrupalCacheArray::resolveCacheMiss().
Parameters
$offset: The offset that was requested.
Return value
The value of the offset, or NULL if no value was found.
Overrides DrupalCacheArray::resolveCacheMiss
File
-
includes/
bootstrap.inc, line 3382
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.