public ThemeManager::setActiveTheme(ActiveTheme $active_theme)
Sets the current active theme manually.
Note: This method should not be used in common cases, just in special cases like tests.
\Drupal\Core\Theme\ActiveTheme $active_theme: The new active theme.
$this
Overrides ThemeManagerInterface::setActiveTheme
public function setActiveTheme(ActiveTheme $active_theme) { $this->activeTheme = $active_theme; if ($active_theme) { $this->themeInitialization->loadActiveTheme($active_theme); } 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::setActiveTheme/8.1.x