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

UpdateRegistry::loadUpdateFiles

protected UpdateRegistry::loadUpdateFiles(array $module_extensions) Loads all update files for a given list of extension. Parameters \Drupal\Core\Extension\Extension[] $module_extensions: The extensions used for loading. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 144 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected function loadUpdateFiles(array $module_extensions) { // Load all the {$this->updateType

UpdateRegistry::registerInvokedUpdates

public UpdateRegistry::registerInvokedUpdates(array $function_names) Registers that update fucntions got executed. Parameters string[] $function_names: The executed update functions. Return value $this File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 207 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code public function registerInvokedUpdates(array $function_names) { $executed_updates = $this->keyValue->get('existi

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_extension

UpdateRegistry::__construct

public UpdateRegistry::__construct($root, $site_path, array $enabled_modules, KeyValueStoreInterface $key_value, $include_tests = NULL) Constructs a new UpdateRegistry. Parameters string $root: The app root. string $site_path: The site path. string[] $enabled_modules: A list of enabled modules. \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value: The key value store. bool|null $include_tests: (optional) A flag whether to include tests in the scanning of modules. File core/lib/Drupal/C

UpdaterException

Defines a Exception class for the Drupal\Core\Updater\Updater class hierarchy. This is identical to the base Exception class, we just give it a more specific name so that call sites that want to tell the difference can specifically catch these exceptions and treat them differently. Hierarchy class \Drupal\Core\Updater\UpdaterException extends \Exception File core/lib/Drupal/Core/Updater/UpdaterException.php, line 13 Namespace Drupal\Core\Updater Members

UpdaterFileTransferException

Defines a child class of Drupal\Core\Updater\UpdaterException that indicates a Drupal\Core\FileTransfer\FileTransfer exception. We have to catch Drupal\Core\FileTransfer\FileTransfer exceptions and wrap those in t(), since Drupal\Core\FileTransfer\FileTransfer is so low-level that it doesn't use any Drupal APIs and none of the strings are translated. Hierarchy class \Drupal\Core\Updater\UpdaterException extends \Exceptionclass \Drupal\Core\Updater\UpdaterFileTransferException File core/lib/

UpdaterInterface

Defines an interface for a class which can update a Drupal project. An Updater currently serves the following purposes: It can take a given directory, and determine if it can operate on it. It can move the contents of that directory into the appropriate place on the system using FileTransfer classes. It can return a list of "next steps" after an update or install. In the future, it will most likely perform some of those steps as well. Hierarchy interface \Drupal\Core\Updater\UpdaterInterface

UpdaterInterface::canUpdateDirectory

public static UpdaterInterface::canUpdateDirectory($directory) Determines if the Updater can handle the project provided in $directory. Parameters string $directory: Return value bool TRUE if the project is installed, FALSE if not. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 56 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public static function canUpdateDirectory($directory);

UpdaterInterface::getInstallDirectory

public UpdaterInterface::getInstallDirectory() Returns the path to the default install location for the current project. Return value string An absolute path to the default install location. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 38 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function getInstallDirectory();