You are here

protected function UpdateRegistry::loadUpdateFiles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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[] $module_extensions: The extensions used for loading.

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

File

core/lib/Drupal/Core/Update/UpdateRegistry.php, line 149
Contains \Drupal\Core\Update\UpdateRegistry.

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

protected function loadUpdateFiles(array $module_extensions) {

  // Load all the {$this->updateType}.php files.
  foreach ($this->enabledModules as $module) {
    if (isset($module_extensions[$module])) {
      $this
        ->loadUpdateFile($module_extensions[$module]);
    }
  }
}