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

Breadcrumb

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

function UpdateRegistry::loadUpdateFile

Loads the {$this->updateType}.php file for a given extension.

Parameters

\Drupal\Core\Extension\Extension $extension: The extension object to load its file.

1 call to UpdateRegistry::loadUpdateFile()
UpdateRegistry::loadUpdateFiles in core/lib/Drupal/Core/Update/UpdateRegistry.php
Loads all update files for a given list of extension.

File

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

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

protected function loadUpdateFile(Extension $extension) {
    $filename = $this->root . '/' . $extension->getPath() . '/' . $extension->getName() . ".{$this->updateType}.php";
    if (file_exists($filename)) {
        include_once $filename;
    }
    self::$loadedFiles[$this->root][$this->sitePath][$extension->getName()][$this->updateType] = TRUE;
}

API Navigation

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