You are here

public function ThemeExtensionList::reset in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::reset()

Resets the stored extension list.

We don't reset statically added filenames, as it is a static cache which logically can't change. This is done for performance reasons of the installer.

Return value

$this

Overrides ExtensionList::reset

File

core/lib/Drupal/Core/Extension/ThemeExtensionList.php, line 304

Class

ThemeExtensionList
Provides a list of available themes.

Namespace

Drupal\Core\Extension

Code

public function reset() {
  parent::reset();
  $this->installedThemes = NULL;
  return $this;
}