You are here

public function WebformThemeManager::isActiveTheme in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformThemeManager.php \Drupal\webform\WebformThemeManager::isActiveTheme()

Determine if a theme name is being used the active or base theme.

Parameters

string $theme_name: A theme name.

Return value

bool TRUE if a theme name is being used the active or base theme.

Overrides WebformThemeManagerInterface::isActiveTheme

File

src/WebformThemeManager.php, line 145

Class

WebformThemeManager
Defines a class to manage webform theming.

Namespace

Drupal\webform

Code

public function isActiveTheme($theme_name) {
  return in_array($theme_name, $this
    ->getActiveThemeNames());
}