update_do_one

update_do_one($module, $number, $dependency_map, &$context) Implements callback_batch_operation(). Performs one update and stores the results for display on the results page. If an update function completes successfully, it should return a message as a string indicating success, for example: return t('New index added successfully.'); Alternatively, it may return nothing. In that case, no message will be displayed at all. If it fails for whatever reason, it should throw an instance of Drup

update_fetch_data

update_fetch_data() Attempts to fetch update data after loading the necessary include file. See also \Drupal\update\UpdateProcessor::fetchData() File core/modules/update/update.module, line 395 Handles updates of Drupal core and contributed projects. Code function update_fetch_data() { \Drupal::service('update.processor')->fetchData(); }

update_fetch_data_finished

update_fetch_data_finished($success, $results) Batch callback: Performs actions when all fetch tasks have been completed. Parameters $success: TRUE if the batch operation was successful; FALSE if there were errors. $results: An associative array of results from the batch operation, including the key 'updated' which holds the total number of projects we fetched available update data for. File core/modules/update/update.module, line 409 Handles updates of Drupal core and contributed projects.

UPDATE_FETCH_PENDING

We need to (re)fetch available update data for this project. File core/modules/update/update.module, line 64 Handles updates of Drupal core and contributed projects. Code const UPDATE_FETCH_PENDING = -4;

update_fix_compatibility

update_fix_compatibility() Disables any extensions that are incompatible with the current core version. File core/includes/update.inc, line 17 Drupal database update API. Code function update_fix_compatibility() { $extension_config = \Drupal::configFactory()->getEditable('core.extension'); $save = FALSE; foreach (array('module', 'theme') as $type) { foreach ($extension_config->get($type) as $name => $weight) { if (update_check_incompatibility($name, $type)) {

update_form_system_modules_alter

update_form_system_modules_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for system_modules(). Adds a form submission handler to the system modules form, so that if a site admin saves the form, we invalidate the information of available updates. See also _update_cache_clear() File core/modules/update/update.module, line 269 Handles updates of Drupal core and contributed projects. Code function update_form_system_modules_alter(&$form, FormStateInte

update_get_available

update_get_available($refresh = FALSE) Tries to get update information and refreshes it when necessary. In addition to checking the lifetime, this function also ensures that there are no .info.yml files for enabled modules or themes that have a newer modification timestamp than the last time we checked for available update data. If any .info.yml file was modified, it almost certainly means a new version of something was installed. Without fresh available update data, the logic in update_calcula

update_get_update_function_list

update_get_update_function_list($starting_updates) Returns an organized list of update functions for a set of modules. Parameters $starting_updates: An array whose keys contain the names of modules and whose values contain the number of the first requested update for that module. Return value An array containing all the update functions that should be run for each module, including the provided starting update and all subsequent updates that are available. The keys of the array contain the mo

update_get_update_list

update_get_update_list() Returns a list of all the pending database updates. Return value 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 system module will always be listed first. 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

update_help

update_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/update/update.module, line 69 Handles updates of Drupal core and contributed projects. Code function update_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.update': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Update Manager module periodically checks for new versions of