function ThemeRegistryLoader::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php \Drupal\Core\Template\Loader\ThemeRegistryLoader::__construct()
- 8.9.x core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php \Drupal\Core\Template\Loader\ThemeRegistryLoader::__construct()
- 11.x core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php \Drupal\Core\Template\Loader\ThemeRegistryLoader::__construct()
Constructs a new ThemeRegistryLoader object.
Parameters
\Drupal\Core\Theme\Registry $theme_registry: The theme registry.
File
-
core/
lib/ Drupal/ Core/ Template/ Loader/ ThemeRegistryLoader.php, line 29
Class
- ThemeRegistryLoader
- Loads templates based on information from the Drupal theme registry.
Namespace
Drupal\Core\Template\LoaderCode
public function __construct(Registry $theme_registry) {
$this->themeRegistry = $theme_registry;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.