You are here

public function ComponentsLoader::__construct in Components! 3.x

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

Constructs a new ComponentsLoader object.

Parameters

\Drupal\components\Template\ComponentsRegistry $componentsRegistry: The components registry service.

File

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

Class

ComponentsLoader
Loads namespaced templates from the filesystem.

Namespace

Drupal\components\Template\Loader

Code

public function __construct(ComponentsRegistry $componentsRegistry) {
  parent::__construct();
  $this->componentsRegistry = $componentsRegistry;
}