function Registry::reset
Same name in other branches
- 9 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::reset()
- 10 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::reset()
- 11.x core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::reset()
Invalidates theme registry caches.
To be called when the list of enabled extensions is changed.
File
-
core/
lib/ Drupal/ Core/ Theme/ Registry.php, line 779
Class
- Registry
- Defines the theme registry service.
Namespace
Drupal\Core\ThemeCode
public function reset() {
// Reset the runtime registry.
foreach ($this->runtimeRegistry as $runtime_registry) {
$runtime_registry->clear();
}
$this->runtimeRegistry = [];
$this->registry = [];
Cache::invalidateTags([
'theme_registry',
]);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.