function Registry::setThemeManager
Same name in other branches
- 9 core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::setThemeManager()
- 8.9.x core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::setThemeManager()
- 11.x core/lib/Drupal/Core/Theme/Registry.php \Drupal\Core\Theme\Registry::setThemeManager()
Sets the theme manager.
Parameters
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
File
-
core/
lib/ Drupal/ Core/ Theme/ Registry.php, line 211
Class
- Registry
- Defines the theme registry service.
Namespace
Drupal\Core\ThemeCode
public function setThemeManager(ThemeManagerInterface $theme_manager) {
$this->themeManager = $theme_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.