You are here

public function ThemeManagerInterface::setActiveTheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

1 method overrides ThemeManagerInterface::setActiveTheme()
ThemeManager::setActiveTheme in core/lib/Drupal/Core/Theme/ThemeManager.php
Sets the current active theme manually.

File

core/lib/Drupal/Core/Theme/ThemeManagerInterface.php, line 68
Contains \Drupal\Core\Theme\ThemeManagerInterface.

Class

ThemeManagerInterface
Provides a high level access to the active theme and methods to use it.

Namespace

Drupal\Core\Theme

Code

public function setActiveTheme(ActiveTheme $active_theme);