function update_manager_archive_verify

Same name and namespace in other branches
  1. 10 core/modules/update/update.manager.inc \update_manager_archive_verify()
  2. 9 core/modules/update/update.manager.inc \update_manager_archive_verify()
  3. 8.9.x core/modules/update/update.manager.inc \update_manager_archive_verify()
  4. 7.x modules/update/update.manager.inc \update_manager_archive_verify()

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 un-extracted 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 there are no errors, it will be an empty array.

1 call to update_manager_archive_verify()
update_manager_batch_project_get in core/modules/update/update.manager.inc
Implements callback_batch_operation().

File

core/modules/update/update.manager.inc, line 155

Code

function update_manager_archive_verify($project, $archive_file, $directory) {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED);
  return \Drupal::moduleHandler()->invokeAllDeprecated('There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', 'verify_update_archive', [
    $project,
    $archive_file,
    $directory,
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.