update_themes_uninstalled

update_themes_uninstalled($themes) Implements hook_themes_uninstalled(). If themes are uninstalled, we invalidate the information of available updates. File core/modules/update/update.module, line 256 Handles updates of Drupal core and contributed projects. Code function update_themes_uninstalled($themes) { // Clear all update module data. update_storage_clear(); }

update_uninstall

update_uninstall() Implements hook_uninstall(). File core/modules/update/update.install, line 72 Install, update, and uninstall functions for the Update Manager module. Code function update_uninstall() { \Drupal::state()->delete('update.last_check'); \Drupal::state()->delete('update.last_email_notification'); $queue = \Drupal::queue('update_fetch_tasks'); $queue->deleteQueue(); }

update_verify_update_archive

update_verify_update_archive($project, $archive_file, $directory) Implements hook_verify_update_archive(). First, we ensure that the archive isn't a copy of Drupal core, which the update manager does not yet support. See https://www.drupal.org/node/606592. Then, we make sure that at least one module included in the archive file has an .info.yml file which claims that the code is compatible with the current version of Drupal core. See also \Drupal\Core\Extension\ExtensionDiscovery _system_rebui

update_themes_installed

update_themes_installed($themes) Implements hook_themes_installed(). If themes are installed, we invalidate the information of available updates. File core/modules/update/update.module, line 246 Handles updates of Drupal core and contributed projects. Code function update_themes_installed($themes) { // Clear all update module data. update_storage_clear(); }

UPDATE_UNKNOWN

No available update data was found for project. File core/modules/update/update.module, line 54 Handles updates of Drupal core and contributed projects. Code const UPDATE_UNKNOWN = -2;

update_storage_clear

update_storage_clear() Invalidates stored data relating to update status. File core/modules/update/update.module, line 641 Handles updates of Drupal core and contributed projects. Code function update_storage_clear() { \Drupal::keyValueExpirable('update')->deleteAll(); \Drupal::keyValueExpirable('update_available_release')->deleteAll(); }

update_retrieve_dependencies

update_retrieve_dependencies() Invokes hook_update_dependencies() in all installed modules. This function is similar to \Drupal::moduleHandler()->invokeAll(), with the main difference that it does not require that a module be enabled to invoke its hook, only that it be installed. This allows the update system to properly perform updates even on modules that are currently disabled. Return value An array of return values obtained by merging the results of the hook_update_dependencies() implem

update_storage_clear_submit

update_storage_clear_submit($form, FormStateInterface $form_state) Form submission handler for system_modules(). See also update_form_system_modules_alter() File core/modules/update/update.module, line 278 Handles updates of Drupal core and contributed projects. Code function update_storage_clear_submit($form, FormStateInterface $form_state) { // Clear all update module data. update_storage_clear(); }

update_set_schema

update_set_schema($module, $schema_version) Forces a module to a given schema version. This function is rarely necessary. Parameters string $module: Name of the module. string $schema_version: The schema version the module should be set to. File core/includes/update.inc, line 113 Drupal database update API. Code function update_set_schema($module, $schema_version) { \Drupal::keyValue('system.schema')->set($module, $schema_version); // system_list_reset() is in module.inc but that woul

update_system_schema_requirements

update_system_schema_requirements() Returns whether the minimum schema requirement has been satisfied. Return value array A requirements info array. File core/includes/update.inc, line 70 Drupal database update API. Code function update_system_schema_requirements() { $requirements = array(); $system_schema = drupal_get_installed_schema_version('system'); $requirements['minimum schema']['title'] = 'Minimum schema version'; if ($system_schema >= \Drupal::CORE_MINIMUM_SCHEMA_VERSIO