function ThemeExtensionList::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
- 10 core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
- 9 core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
- 8.9.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
Constructs a new instance.
Parameters
string $root: The app root.
string $type: The extension type.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache.
\Drupal\Core\Extension\InfoParserInterface $info_parser: The info parser.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\State\StateInterface $state: The state.
string $install_profile: The install profile used by the site.
Overrides ExtensionList::__construct
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php, line 73
Class
- ThemeExtensionList
- Provides a list of available themes.
Namespace
Drupal\Core\ExtensionCode
public function __construct(#[Autowire(param: 'app.root')] $root, #[Autowire(service: 'cache.bootstrap')] CacheBackendInterface $cache, InfoParserInterface $info_parser, ModuleHandlerInterface $module_handler, StateInterface $state, ConfigFactoryInterface $config_factory, #[Autowire(param: 'install_profile')] $install_profile) {
parent::__construct($root, 'theme', $cache, $info_parser, $module_handler, $state, $install_profile);
$this->configFactory = $config_factory;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.