class ThemeRegistry

Builds the run-time theme registry.

Extends CacheArray to allow the theme registry to be accessed as a complete registry, while internally caching only the parts of the registry that are actually in use on the site. On cache misses the complete theme registry is loaded and used to update the run-time cache.

Hierarchy

Expanded class hierarchy of ThemeRegistry

2 files declare their use of ThemeRegistry
1 string reference to 'ThemeRegistry'

File

drupal/core/lib/Drupal/Core/Utility/ThemeRegistry.php, line 20
Definition of Drupal\Core\Utility\ThemeRegistry

Namespace

Drupal\Core\Utility
View source

Members

Namesort descending Modifiers Type Description Overrides
CacheArray::$bin protected property A bin to pass to cache()->set() and cache()->get().
CacheArray::$cid protected property A cid to pass to cache()->set() and cache()->get().
CacheArray::$keysToPersist protected property An array of keys to add to the cache at the end of the request.
CacheArray::$storage protected property Storage for the data itself.
CacheArray::$tags protected property A tags array to pass to cache()->set().
CacheArray::clear public function Clear the cache. 1
CacheArray::offsetSet public function Implements ArrayAccess::offsetSet().
CacheArray::offsetUnset public function Implements ArrayAccess::offsetUnset().
CacheArray::persist protected function Flags an offset value to be written to the persistent cache.
CacheArray::__destruct public function Destructs the CacheArray object. 2
ThemeRegistry::$completeRegistry protected property The complete theme registry array.
ThemeRegistry::$persistable protected property Whether the partial registry can be persisted to the cache.
ThemeRegistry::initializeRegistry function Initializes the full theme registry.
ThemeRegistry::offsetExists public function Overrides CacheArray::offsetExists(). Overrides CacheArray::offsetExists
ThemeRegistry::offsetGet public function Overrides CacheArray::offsetGet(). Overrides CacheArray::offsetGet
ThemeRegistry::resolveCacheMiss public function Implements CacheArray::resolveCacheMiss(). Overrides CacheArray::resolveCacheMiss
ThemeRegistry::set public function Overrides CacheArray::set(). Overrides CacheArray::set
ThemeRegistry::__construct function Constructs a ThemeRegistry object. Overrides CacheArray::__construct