function ThemeManager::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::__construct()
- 10 core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::__construct()
- 11.x core/lib/Drupal/Core/Theme/ThemeManager.php \Drupal\Core\Theme\ThemeManager::__construct()
Constructs a new ThemeManager object.
Parameters
string $root: The app root.
\Drupal\Core\Theme\ThemeNegotiatorInterface $theme_negotiator: The theme negotiator.
\Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization: The theme initialization.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php, line 71
Class
- ThemeManager
- Provides the default implementation of a theme manager.
Namespace
Drupal\Core\ThemeCode
public function __construct($root, ThemeNegotiatorInterface $theme_negotiator, ThemeInitializationInterface $theme_initialization, ModuleHandlerInterface $module_handler) {
$this->root = $root;
$this->themeNegotiator = $theme_negotiator;
$this->themeInitialization = $theme_initialization;
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.