function UpdateRegistry::__construct

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

Constructs a new UpdateRegistry.

Parameters

string $root: The app root.

string $site_path: The site path.

string[] $enabled_extensions: A list of enabled extensions.

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

bool|null $include_tests: (optional) A flag whether to include tests in the scanning of extensions.

File

core/lib/Drupal/Core/Update/UpdateRegistry.php, line 84

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

public function __construct($root, $site_path, array $enabled_extensions, KeyValueStoreInterface $key_value, $include_tests = NULL) {
    $this->root = $root;
    $this->sitePath = $site_path;
    $this->enabledExtensions = $enabled_extensions;
    $this->keyValue = $key_value;
    $this->includeTests = $include_tests;
}

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