public function ThemeRegistryLoader::__construct in Drupal 9
Same name and namespace in other branches
- 8 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;
}