function ComponentLoader::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Template/Loader/ComponentLoader.php \Drupal\Core\Template\Loader\ComponentLoader::__construct()

Constructs a new ComponentLoader object.

Parameters

\Drupal\Core\Theme\ComponentPluginManager $pluginManager: The plugin manager.

\Psr\Log\LoggerInterface $logger: The logger.

File

core/lib/Drupal/Core/Template/Loader/ComponentLoader.php, line 27

Class

ComponentLoader
Lets you load templates using the component ID.

Namespace

Drupal\Core\Template\Loader

Code

public function __construct(ComponentPluginManager $pluginManager, LoggerInterface $logger) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.