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

Breadcrumb

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

function 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 151

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]);
        }
    }
}

API Navigation

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