public function WebformThemeManager::getActiveThemeNames in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformThemeManager.php \Drupal\webform\WebformThemeManager::getActiveThemeNames()
Get all active theme names.
Return value
array An array containing the active theme and base theme names.
Overrides WebformThemeManagerInterface::getActiveThemeNames
1 call to WebformThemeManager::getActiveThemeNames()
- WebformThemeManager::isActiveTheme in src/
WebformThemeManager.php - Determine if a theme name is being used the active or base theme.
File
- src/
WebformThemeManager.php, line 126
Class
- WebformThemeManager
- Defines a class to manage webform theming.
Namespace
Drupal\webformCode
public function getActiveThemeNames() {
$active_theme = $this->themeManager
->getActiveTheme();
// Note: Reversing the order so that base themes are first.
return array_reverse(array_merge([
$active_theme
->getName(),
], array_keys($active_theme
->getBaseThemeExtensions())));
}