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::getPendingUpdateFunctions

public UpdateRegistry::getPendingUpdateFunctions() Find all update functions that haven't been executed. Return value callable[] A list of update functions. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 121 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code public function getPendingUpdateFunctions() { // We need a) the list of active modules (we get that from the config // bootstrap factory) and b) the path to the m

UpdateRegistry::getPendingUpdateInformation

public UpdateRegistry::getPendingUpdateInformation() Returns a list of all the pending updates. Return value array[] An associative array keyed by module name which contains all information about database updates that need to be run, and any updates that are not going to proceed due to missing requirements. The subarray for each module can contain the following keys: start: The starting update that is to be processed. If this does not exist then do not process any updates for this module as t

UpdateRegistry::getModuleUpdateFunctions

public UpdateRegistry::getModuleUpdateFunctions($module_name) Returns all available updates for a given module. Parameters string $module_name: The module name. Return value callable[] A list of update functions. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 224 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code public function getModuleUpdateFunctions($module_name) { $this->scanExtensionsAndLoadUpdateFiles(); $a

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::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::getAvailableUpdateFunctions

protected UpdateRegistry::getAvailableUpdateFunctions() Gets all available update functions. Return value callable[] A list of update functions. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 95 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected function getAvailableUpdateFunctions() { $regexp = '/^(?<module>.+)_' . $this->updateType . '_(?<name>.+)$/'; $functions = get_defined_functions();

UpdateRegistry::$sitePath

The site path. Type: string File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 65 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected $sitePath;

UpdateRegistry::$updateType

The used update name. Type: string File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 25 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected $updateType = 'post_update';

UpdateRegistry::$logFilename

The filename of the log file. Type: string File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 39 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code protected $logFilename;