function update_check_requirements

Same name and namespace in other branches
  1. 11.x core/includes/update.inc \update_check_requirements()
  2. 10 core/includes/update.inc \update_check_requirements()
  3. 9 core/includes/update.inc \update_check_requirements()
  4. 8.9.x core/includes/update.inc \update_check_requirements()
  5. 7.x update.php \update_check_requirements()

Checks update requirements and reports errors and (optionally) warnings.

Deprecated

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(DatabaseUpdate::class)->getRequirements() instead.

See also

https://www.drupal.org/node/3013060

File

core/includes/update.inc, line 41

Code

function update_check_requirements() {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal::service(DatabaseUpdate::class)->getRequirements() instead. See https://www.drupal.org/node/3013060', E_USER_DEPRECATED);
  return \Drupal::service(DatabaseUpdate::class)->getRequirements();
}

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