public function WebformThemeManager::isActiveTheme in Webform 8.5
Same name and namespace in other branches
- 6.x 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 147
Class
- WebformThemeManager
- Defines a class to manage webform theming.
Namespace
Drupal\webformCode
public function isActiveTheme($theme_name) {
return in_array($theme_name, $this
->getActiveThemeNames());
}