function ExtensionList::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__construct()
  2. 10 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__construct()
  3. 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::__construct()
  4. 8.9.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 $infoParser: The info parser.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\Core\State\StateInterface $state: The state.

string $installProfile: The install profile used by the site.

2 calls to ExtensionList::__construct()
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 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 instance.

File

core/lib/Drupal/Core/Extension/ExtensionList.php, line 86

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

public function __construct(protected $root, protected $type, protected CacheBackendInterface $cache, protected InfoParserInterface $infoParser, protected ModuleHandlerInterface $moduleHandler, protected StateInterface $state, protected $installProfile) {
}

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