function ThemeManager::setActiveTheme

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::setActiveTheme()

File

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

Class

ThemeManager
Provides the default implementation of a theme manager.

Namespace

Drupal\Core\Theme

Code

public function setActiveTheme(ActiveTheme $active_theme) {
  $this->activeTheme = $active_theme;
  if ($active_theme) {
    $this->themeInitialization
      ->loadActiveTheme($active_theme);
  }
  return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.