function ThemeRegistry::resolveCacheMiss

Same name in other branches
  1. 9 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::resolveCacheMiss()
  2. 8.9.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::resolveCacheMiss()
  3. 10 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::resolveCacheMiss()
  4. 11.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::resolveCacheMiss()

Overrides DrupalCacheArray::resolveCacheMiss

1 call to ThemeRegistry::resolveCacheMiss()
ThemeRegistry::offsetGet in includes/theme.inc
Implements ArrayAccess::offsetGet().

File

includes/theme.inc, line 436

Class

ThemeRegistry
Builds the run-time theme registry.

Code

public function resolveCacheMiss($offset) {
    if (!isset($this->completeRegistry)) {
        $this->completeRegistry = theme_get_registry();
    }
    $this->storage[$offset] = $this->completeRegistry[$offset];
    if ($this->persistable) {
        $this->persist($offset);
    }
    return $this->storage[$offset];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.