function ExtensionList::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__construct()
- 8.9.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__construct()
- 11.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__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.
1 call to ExtensionList::__construct()
- ThemeExtensionList::__construct in core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php - Constructs a new ThemeExtensionList instance.
3 methods override ExtensionList::__construct()
- DatabaseDriverList::__construct in core/
lib/ Drupal/ Core/ Extension/ DatabaseDriverList.php - Constructs a new instance.
- ModuleExtensionList::__construct in core/
lib/ Drupal/ Core/ Extension/ ModuleExtensionList.php - Constructs a new ModuleExtensionList instance.
- ThemeExtensionList::__construct in core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php - Constructs a new ThemeExtensionList instance.
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionList.php, line 137
Class
- ExtensionList
- Provides available extensions.
Namespace
Drupal\Core\ExtensionCode
public function __construct($root, $type, CacheBackendInterface $cache, InfoParserInterface $info_parser, ModuleHandlerInterface $module_handler, StateInterface $state, $install_profile) {
$this->root = $root;
$this->type = $type;
$this->cache = $cache;
$this->infoParser = $info_parser;
$this->moduleHandler = $module_handler;
$this->state = $state;
$this->installProfile = $install_profile;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.