update_build_dependency_graph

update_build_dependency_graph($update_functions) Constructs a graph which encodes the dependencies between module updates. This function returns an associative array which contains a "directed graph" representation of the dependencies between a provided list of update functions, as well as any outside update functions that they directly depend on but that were not in the provided list. The vertices of the graph represent the update functions themselves, and each edge represents a requirement th

update_clear_update_disk_cache

update_clear_update_disk_cache() Clears the temporary files and directories based on file age from disk. File core/modules/update/update.module, line 707 Handles updates of Drupal core and contributed projects. Code function update_clear_update_disk_cache() { // List of update module cache directories. Do not create the directories if // they do not exist. $directories = array( _update_manager_cache_directory(FALSE), _update_manager_extract_directory(FALSE), ); // Search fo

update_check_requirements

update_check_requirements() Checks update requirements and reports errors and (optionally) warnings. File core/includes/update.inc, line 96 Drupal database update API. Code function update_check_requirements() { // Check requirements of all loaded modules. $requirements = \Drupal::moduleHandler()->invokeAll('requirements', array('update')); $requirements += update_system_schema_requirements(); return $requirements; }

update_authorize_update_batch_finished

update_authorize_update_batch_finished($success, $results) Batch callback: Performs actions when the authorized update batch is done. This processes the results and stashes them into SESSION such that authorize.php will render a report. Also responsible for putting the site back online and clearing the update status storage after a successful update. Parameters $success: TRUE if the batch operation was successful; FALSE if there were errors. $results: An associative array of results from the b

update_authorize_batch_copy_project

update_authorize_batch_copy_project($project, $updater_name, $local_url, $filetransfer, &$context) Implements callback_batch_operation(). Copies project to its proper place when authorized to do so. Parameters string $project: The canonical short name of the project being installed. string $updater_name: The name of the Drupal\Core\Updater\Updater class to use for installing this project. string $local_url: The URL to the locally installed temp directory where the project has already been

update_authorize_run_install

update_authorize_run_install($filetransfer, $project, $updater_name, $local_url) Installs a new project when invoked by authorize.php. Callback for system_authorized_init() in update_manager_install_form_submit(). Parameters FileTransfer $filetransfer: The FileTransfer object created by authorize.php for use during this operation. string $project: The canonical project short name; i.e., the name of the module, theme, or profile. string $updater_name: The name of the Drupal\Core\Updater\Updater

update_authorize_run_update

update_authorize_run_update($filetransfer, $projects) Updates existing projects when invoked by authorize.php. Callback for system_authorized_init() in update_manager_update_ready_form_submit(). Parameters $filetransfer: The FileTransfer object created by authorize.php for use during this operation. $projects: A nested array of projects to install into the live webroot, keyed by project name. Each subarray contains the following keys: project: The canonical project short name. updater_name:

update_authorize_install_batch_finished

update_authorize_install_batch_finished($success, $results) Implements callback_batch_finished(). Performs actions when the authorized install batch is done. This processes the results and stashes them into SESSION such that authorize.php will render a report. Also responsible for putting the site back online after a successful install if necessary. Parameters $success: TRUE if the batch operation was a success; FALSE if there were errors. $results: An associative array of results from the bat

UpdateSettingsForm::validateForm

public UpdateSettingsForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/update/src/UpdateSettingsForm.php, line 105 Class UpdateSettingsForm Configure update settings for this site. Namespace Drupal\update Code public function vali

update_already_performed

update_already_performed($module, $number) Determines if a module update has already been performed. Parameters $module: The name of the module. $number: The number of the update within that module. Return value TRUE if the database schema indicates that the update has already been performed; FALSE otherwise. File core/includes/update.inc, line 583 Drupal database update API. Code function update_already_performed($module, $number) { return $number <= drupal_get_installed_schema_versio