function Registry::init
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::init()
- 10 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::init()
- 9 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::init()
- 8.9.x core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::init()
Fetches the active theme.
3 calls to Registry::init()
- Registry::get in core/
lib/ Drupal/ Core/ Theme/ Registry.php - Returns the complete theme registry from cache or rebuilds it.
- Registry::getBaseHook in core/
lib/ Drupal/ Core/ Theme/ Registry.php - Returns the base hook for a given hook suggestion.
- Registry::getRuntime in core/
lib/ Drupal/ Core/ Theme/ Registry.php - Returns the incomplete, runtime theme registry.
File
-
core/
lib/ Drupal/ Core/ Theme/ Registry.php, line 155
Class
- Registry
- Defines the theme registry service.
Namespace
Drupal\Core\ThemeCode
protected function init() {
$this->theme = $this->themeManager
->getActiveTheme();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.