You are here

public function WebformThemeManager::setActiveTheme in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformThemeManager.php \Drupal\webform\WebformThemeManager::setActiveTheme()

Sets the current theme the active theme.

Overrides WebformThemeManagerInterface::setActiveTheme

2 calls to WebformThemeManager::setActiveTheme()
WebformThemeManager::render in src/WebformThemeManager.php
Renders HTML given a structured array tree.
WebformThemeManager::renderPlain in src/WebformThemeManager.php
Renders using the default theme final HTML in situations where no assets are needed.

File

src/WebformThemeManager.php, line 166

Class

WebformThemeManager
Defines a class to manage webform theming.

Namespace

Drupal\webform

Code

public function setActiveTheme() {
  if ($this->activeTheme) {
    $this->themeManager
      ->setActiveTheme($this->activeTheme);
  }
}