public function ThemeManager::resetActiveTheme

public ThemeManager::resetActiveTheme()

Resets the current active theme.

Note: This method should not be used in common cases, just in special cases like tests.

Return value

$this

Overrides ThemeManagerInterface::resetActiveTheme

File

core/lib/Drupal/Core/Theme/ThemeManager.php, line 111

Class

ThemeManager
Provides the default implementation of a theme manager.

Namespace

Drupal\Core\Theme

Code

public function resetActiveTheme() {
  $this->activeTheme = NULL;
  return $this;
}

© 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!Theme!ThemeManager.php/function/ThemeManager::resetActiveTheme/8.1.x