You are here

public function ThemeRegistryLoader::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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 27

Class

ThemeRegistryLoader
Loads templates based on information from the Drupal theme registry.

Namespace

Drupal\Core\Template\Loader

Code

public function __construct(Registry $theme_registry) {
  $this->themeRegistry = $theme_registry;
}