ThemeInitialization::__construct
public function ThemeInitialization::__construct
public ThemeInitialization::__construct($root, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache, ModuleHandlerInterface $module_handler)
Constructs a new ThemeInitialization object.
Parameters
string $root: The app root.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to use to load modules.
File
- core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 55
Class
- ThemeInitialization
- Provides the theme initialization logic.
Namespace
Drupal\Core\ThemeCode
public function __construct($root, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache, ModuleHandlerInterface $module_handler) { $this->root = $root; $this->themeHandler = $theme_handler; $this->cache = $cache; $this->moduleHandler = $module_handler; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!ThemeInitialization.php/function/ThemeInitialization::__construct/8.1.x