UpdateRegistry::loadUpdateFile

protected UpdateRegistry::loadUpdateFile(Extension $module)

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

Parameters

\Drupal\Core\Extension\Extension $module: The extension of the module to load its file.

File

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

Class

UpdateRegistry
Provides all and missing update implementations.

Namespace

Drupal\Core\Update

Code

protected function loadUpdateFile(Extension $module) {
  $filename = $this->root . '/' . $module->getPath() . '/' . $module->getName() . ".{$this->updateType}.php";
  if (file_exists($filename)) {
    include_once $filename;
  }
}
doc_Drupal
2016-10-29 09:51:12
Comments
Leave a Comment

Please login to continue.