public function ComponentsLoader::__construct in Components! 8.2
Same name and namespace in other branches
- 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
File
- src/
Template/ Loader/ ComponentsLoader.php, line 64
Class
- ComponentsLoader
- Loads templates from the filesystem.
Namespace
Drupal\components\Template\LoaderCode
public function __construct(ComponentsInfo $components_info, ThemeManagerInterface $theme_manager) {
parent::__construct();
$this->componentsInfo = $components_info;
$this->themeManager = $theme_manager;
}