function UpdateManager::__construct
Same name in other branches
- 8.9.x core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
- 10 core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
- 11.x core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
Constructs an UpdateManager.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler service
\Drupal\update\UpdateProcessorInterface $update_processor: The Update Processor service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_expirable_factory: The expirable key/value factory.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Extension\ModuleExtensionList|null $extension_list_module: The module extension list.
File
-
core/
modules/ update/ src/ UpdateManager.php, line 96
Class
- UpdateManager
- Default implementation of UpdateManagerInterface.
Namespace
Drupal\updateCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler, ModuleExtensionList $extension_list_module) {
$this->updateSettings = $config_factory->get('update.settings');
$this->moduleHandler = $module_handler;
$this->updateProcessor = $update_processor;
$this->stringTranslation = $translation;
$this->keyValueStore = $key_value_expirable_factory->get('update');
$this->themeHandler = $theme_handler;
$this->availableReleasesTempStore = $key_value_expirable_factory->get('update_available_releases');
$this->projects = [];
$this->moduleExtensionList = $extension_list_module;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.