function UpdateRegistry::loadUpdateFiles

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

Loads all update files for a given list of extension.

Parameters

\Drupal\Core\Extension\Extension[] $extensions: The extensions used for loading.

1 call to UpdateRegistry::loadUpdateFiles()
UpdateRegistry::scanExtensionsAndLoadUpdateFiles in core/lib/Drupal/Core/Update/UpdateRegistry.php
Scans all module, theme, and profile extensions and load the update files.

File

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

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

protected function loadUpdateFiles(array $extensions) {
    // Load all the {$this->updateType}.php files.
    foreach ($this->enabledExtensions as $extension) {
        if (isset($extensions[$extension])) {
            $this->loadUpdateFile($extensions[$extension]);
        }
    }
}

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