update_invoke_post_update

update_invoke_post_update($function, &$context) Executes a single hook_post_update_NAME(). Parameters string $function: The function name, that should be executed. array $context: The batch context array. File core/includes/update.inc, line 228 Drupal database update API. Code function update_invoke_post_update($function, &$context) { $ret = []; // If this update was aborted in a previous step, or has a dependency that was // aborted in a previous step, go no further. if (!e

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

update_install

update_install() Implements hook_install(). File core/modules/update/update.install, line 64 Install, update, and uninstall functions for the Update Manager module. Code function update_install() { $queue = \Drupal::queue('update_fetch_tasks', TRUE); $queue->createQueue(); }

update_is_missing

update_is_missing($module, $number, $update_functions) Determines if a module update is missing or unavailable. Parameters $module: The name of the module. $number: The number of the update within that module. $update_functions: An organized array of update functions, in the format returned by update_get_update_function_list(). This should represent all module updates that are requested to run at the time this function is called. Return value TRUE if the provided module update is not installe

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_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_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_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_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;