You are here

public function WebformThemeManager::getActiveThemeNames in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 124

Class

WebformThemeManager
Defines a class to manage webform theming.

Namespace

Drupal\webform

Code

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())));
}