public function ThemeInitializationInterface::getActiveThemeByName in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php \Drupal\Core\Theme\ThemeInitializationInterface::getActiveThemeByName()
- 9 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.
File
- core/
lib/ Drupal/ Core/ Theme/ ThemeInitializationInterface.php, line 37
Class
- ThemeInitializationInterface
- Defines an interface which contain theme initialization logic.
Namespace
Drupal\Core\ThemeCode
public function getActiveThemeByName($theme_name);