function ThemeInitializationInterface::getActiveThemeByName

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php \Drupal\Core\Theme\ThemeInitializationInterface::getActiveThemeByName()
  2. 10 core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php \Drupal\Core\Theme\ThemeInitializationInterface::getActiveThemeByName()
  3. 11.x core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php \Drupal\Core\Theme\ThemeInitializationInterface::getActiveThemeByName()

Builds an active theme object.

Parameters

string $theme_name: The machine name of the theme.

Return value

\Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme.

Throws

\Drupal\Core\Theme\MissingThemeDependencyException Thrown when base theme for installed theme is not installed.

1 method overrides ThemeInitializationInterface::getActiveThemeByName()
ThemeInitialization::getActiveThemeByName in core/lib/Drupal/Core/Theme/ThemeInitialization.php
Builds an active theme object.

File

core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php, line 37

Class

ThemeInitializationInterface
Defines an interface which contain theme initialization logic.

Namespace

Drupal\Core\Theme

Code

public function getActiveThemeByName($theme_name);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.