/** * Invalidates theme registry caches. * * To be called when the list of enabled extensions is changed. */ public function reset() { // Reset the runtime registry. if (isset($this->runtimeRegistry) && $this->runtimeRegistry instanceof ThemeRegistry) { $this->runtimeRegistry->clear(); } $this->runtimeRegistry = NULL; $this->registry = NULL; Cache::invalidateTags(array('theme_registry' => TRUE)); return $this; }