function ThemeInstaller::__construct

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

File

core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 26

Class

ThemeInstaller
Manages theme installation/uninstallation.

Namespace

Drupal\Core\Extension

Code

public function __construct(protected readonly ThemeHandlerInterface $themeHandler, protected readonly ConfigFactoryInterface $configFactory, protected readonly ConfigInstallerInterface $configInstaller, protected readonly ModuleHandlerInterface $moduleHandler, protected readonly ConfigManagerInterface $configManager, protected readonly AssetCollectionOptimizerInterface $cssCollectionOptimizer, protected readonly RouteBuilderInterface $routeBuilder, protected readonly LoggerInterface $logger, protected readonly StateInterface $state, protected readonly ModuleExtensionList $moduleExtensionList, protected readonly Registry $themeRegistry, protected readonly ThemeExtensionList $themeExtensionList, protected ?CachedDiscoveryInterface $componentPluginManager = NULL) {
  if ($this->componentPluginManager === NULL) {
    @trigger_error('Calling ' . __METHOD__ . ' without the $componentPluginManager argument is deprecated in drupal:11.2.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3525649', E_USER_DEPRECATED);
    $this->componentPluginManager = \Drupal::service('plugin.manager.sdc');
  }
}

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