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

update_language_list($flags = LanguageInterface::STATE_CONFIGURABLE) Returns a list of languages set up on the site during upgrades. Parameters $flags: (optional) Specifies the state of the languages that have to be returned. It can be: LanguageInterface::STATE_CONFIGURABLE, LanguageInterface::STATE_LOCKED, or LanguageInterface::STATE_ALL. Return value \Drupal\Core\Language\LanguageInterface[] An associative array of languages, keyed by the language code, ordered by weight ascending and name

update_mail

update_mail($key, &$message, $params) Implements hook_mail(). Constructs the email notification message when the site is out of date. Parameters $key: Unique key to indicate what message to build, always 'status_notify'. $message: Reference to the message array being built. $params: Array of parameters to indicate what kind of text to include in the message body. This is a keyed array of message type ('core' or 'contrib') as the keys, and the status reason constant (UPDATE_NOT_SECURE, etc)

update_manager_archive_extract

update_manager_archive_extract($file, $directory) Unpacks a downloaded archive file. Parameters string $file: The filename of the archive you wish to extract. string $directory: The directory you wish to extract the archive into. Return value Archiver The Archiver object used to extract the archive. Throws Exception File core/modules/update/update.manager.inc, line 150 Administrative screens and processing functions of the Update Manager module. Code function update_manager_archive_extract

update_manager_archive_verify

update_manager_archive_verify($project, $archive_file, $directory) Verifies an archive after it has been downloaded and extracted. This function is responsible for invoking hook_verify_update_archive(). Parameters string $project: The short name of the project to download. string $archive_file: The filename of the unextracted archive. string $directory: The directory that the archive was extracted into. Return value array An array of error messages to display if the archive was invalid. If th

update_manager_batch_project_get

update_manager_batch_project_get($project, $url, &$context) Implements callback_batch_operation(). Downloads, unpacks, and verifies a project. This function assumes that the provided URL points to a file archive of some sort. The URL can have any scheme that we have a file stream wrapper to support. The file is downloaded to a local cache. Parameters string $project: The short name of the project to download. string $url: The URL to download a specific project release archive file. array $

update_manager_download_batch_finished

update_manager_download_batch_finished($success, $results) Batch callback: Performs actions when the download batch is 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. File core/modules/update/update.manager.inc, line 49 Administrative screens and processing functions of the Update Manager module. Code function update_manager_download_batch_finished($success, $results) {

update_manager_file_get

update_manager_file_get($url) Copies a file from the specified URL to the temporary directory for updates. Returns the local path if the file has already been downloaded. Parameters $url: The URL of the file on the server. Return value string Path to local file. File core/modules/update/update.manager.inc, line 206 Administrative screens and processing functions of the Update Manager module. Code function update_manager_file_get($url) { $parsed_url = parse_url($url); $remote_schemes = a