Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThemeManager.php

function ThemeManager::setActiveTheme

Overrides ThemeManagerInterface::setActiveTheme

File

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

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;
}
RSS feed
Powered by Drupal