You are here

public function ComponentsLoader::__construct in Components! 8.2

Same name and namespace in other branches
  1. 3.x src/Template/Loader/ComponentsLoader.php \Drupal\components\Template\Loader\ComponentsLoader::__construct()

Constructs a new ComponentsLoader object.

Parameters

\Drupal\components\Template\ComponentsInfo $components_info: The components info service.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager service.

Throws

\Twig\Error\LoaderError

File

src/Template/Loader/ComponentsLoader.php, line 64

Class

ComponentsLoader
Loads templates from the filesystem.

Namespace

Drupal\components\Template\Loader

Code

public function __construct(ComponentsInfo $components_info, ThemeManagerInterface $theme_manager) {
  parent::__construct();
  $this->componentsInfo = $components_info;
  $this->themeManager = $theme_manager;
}