public function ThemeManager::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:
File
- core/
lib/ Drupal/ Core/ Theme/ ThemeManager.php, line 76 - Contains \Drupal\Core\Theme\ThemeManager.
Class
- ThemeManager
- Provides the default implementation of a theme manager.
Namespace
Drupal\Core\ThemeCode
public function __construct($root, ThemeNegotiatorInterface $theme_negotiator, ThemeInitializationInterface $theme_initialization, RequestStack $request_stack, ModuleHandlerInterface $module_handler) {
$this->root = $root;
$this->themeNegotiator = $theme_negotiator;
$this->themeInitialization = $theme_initialization;
$this->requestStack = $request_stack;
$this->moduleHandler = $module_handler;
}