function UpdateHookRegistry::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::__construct()
  2. 11.x core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::__construct()

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;
}

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