protected function 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\UpdateCode
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Update!UpdateRegistry.php/function/UpdateRegistry::scanExtensionsAndLoadUpdateFiles/8.1.x