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

public UpdateRegistry::filterOutInvokedUpdatesByModule($module) Filters out already executed update functions by module. Parameters string $module: The module name. File core/lib/Drupal/Core/Update/UpdateRegistry.php, line 254 Class UpdateRegistry Provides all and missing update implementations. Namespace Drupal\Core\Update Code public function filterOutInvokedUpdatesByModule($module) { $existing_update_functions = $this->keyValue->get('existing_updates', []); $remaining_up

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::$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;