Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateRegistry.php

function UpdateRegistry::__construct

Constructs a new UpdateRegistry.

Parameters

string $root: The app root.

string $sitePath: The site path.

array $module_list: An associative array whose keys are the names of installed modules.

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

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

string $updateType: The used update name.

File

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

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

public function __construct($root, $sitePath, array $module_list, KeyValueStoreInterface $keyValue, ThemeHandlerInterface $theme_handler, string $updateType = 'post_update') {
    $this->enabledExtensions = array_merge(array_keys($module_list), array_keys($theme_handler->listInfo()));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal