UPDATE_NOT_SECURE

Project is missing security update(s). File core/modules/update/update.module, line 24 Handles updates of Drupal core and contributed projects. Code const UPDATE_NOT_SECURE = 1;

UPDATE_NOT_CURRENT

Project has a new release available, but it is not a security release. File core/modules/update/update.module, line 39 Handles updates of Drupal core and contributed projects. Code const UPDATE_NOT_CURRENT = 4;

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

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

update_manager_local_transfers_allowed() Determines if file transfers will be performed locally. If the server is configured such that webserver-created files have the same owner as the configuration directory (e.g., sites/default) where new code will eventually be installed, the update manager can transfer files entirely locally, without changing their ownership (in other words, without prompting the user for FTP, SSH or other credentials). This server configuration is an inherent security wea

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