function ThemeExtensionList::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
  2. 8.9.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeExtensionList.php \Drupal\Core\Extension\ThemeExtensionList::__construct()

Constructs a new ThemeExtensionList 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 service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ThemeEngineExtensionList $engine_list: The theme engine extension listing.

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

Overrides ExtensionList::__construct

File

core/lib/Drupal/Core/Extension/ThemeExtensionList.php, line 101

Class

ThemeExtensionList
Provides a list of available themes.

Namespace

Drupal\Core\Extension

Code

public function __construct($root, $type, CacheBackendInterface $cache, InfoParserInterface $info_parser, ModuleHandlerInterface $module_handler, StateInterface $state, ConfigFactoryInterface $config_factory, ThemeEngineExtensionList $engine_list, $install_profile) {
    parent::__construct($root, $type, $cache, $info_parser, $module_handler, $state, $install_profile);
    $this->configFactory = $config_factory;
    $this->engineList = $engine_list;
}

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