public function ThemeInitializationInterface::initTheme in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php \Drupal\Core\Theme\ThemeInitializationInterface::initTheme()
Initializes a given theme.
This loads the active theme, for example include its engine file.
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.
1 method overrides ThemeInitializationInterface::initTheme()
- ThemeInitialization::initTheme in core/
lib/ Drupal/ Core/ Theme/ ThemeInitialization.php - Initializes a given theme.
File
- core/
lib/ Drupal/ Core/ Theme/ ThemeInitializationInterface.php, line 23
Class
- ThemeInitializationInterface
- Defines an interface which contain theme initialization logic.
Namespace
Drupal\Core\ThemeCode
public function initTheme($theme_name);