function 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\LoaderCode
public function __construct(protected ComponentPluginManager $pluginManager, protected LoggerInterface $logger) {
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
