UpdateRegistry::scanExtensionsAndLoadUpdateFiles

protected UpdateRegistry::scanExtensionsAndLoadUpdateFiles()

Scans all module + profile extensions and load the update files.

File

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

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

protected function scanExtensionsAndLoadUpdateFiles() {
  // Scan the module list.
  $extension_discovery = new ExtensionDiscovery($this->root, FALSE, [], $this->sitePath);
  $module_extensions = $extension_discovery->scan('module');

  $profile_extensions = $extension_discovery->scan('profile');
  $extensions = array_merge($module_extensions, $profile_extensions);

  $this->loadUpdateFiles($extensions);
}
doc_Drupal
2016-10-29 09:51:13
Comments
Leave a Comment

Please login to continue.