public ThemeRegistry::resolveCacheMiss($key)
Resolves a cache miss.
When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached.
string $key: The offset that was requested.
mixed The value of the offset, or NULL if no value was found.
Overrides CacheCollector::resolveCacheMiss
public function resolveCacheMiss($key) { if (!isset($this->completeRegistry)) { $this->completeRegistry = \Drupal::service('theme.registry')->get(); } $this->storage[$key] = $this->completeRegistry[$key]; if ($this->persistable) { $this->persist($key); } return $this->storage[$key]; }
© 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/core!lib!Drupal!Core!Utility!ThemeRegistry.php/function/ThemeRegistry::resolveCacheMiss/8.1.x