function ThemeManagerInterface::setActiveTheme
Same name in other branches
- 9 core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::setActiveTheme()
- 8.9.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::setActiveTheme()
- 11.x core/lib/Drupal/Core/Theme/ThemeManagerInterface.php \Drupal\Core\Theme\ThemeManagerInterface::setActiveTheme()
Sets the current active theme manually.
Note: This method should not be used in common cases, just in special cases like tests.
Parameters
\Drupal\Core\Theme\ActiveTheme $active_theme: The new active theme.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeManagerInterface.php, line 70
Class
- ThemeManagerInterface
- Provides a high level access to the active theme and methods to use it.
Namespace
Drupal\Core\ThemeCode
public function setActiveTheme(ActiveTheme $active_theme);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.