You are here

public function UpdateHookRegistry::__construct in Drupal 9

Constructs a new UpdateRegistry.

Parameters

string[] $enabled_modules: A list of enabled modules.

\Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value: The key value store.

File

core/lib/Drupal/Core/Update/UpdateHookRegistry.php, line 60

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

public function __construct(array $enabled_modules, KeyValueStoreInterface $key_value) {
  $this->enabledModules = $enabled_modules;
  $this->keyValue = $key_value;
}