You are here

function update_check_requirements in Drupal 10

Same name and namespace in other branches
  1. 8 core/includes/update.inc \update_check_requirements()
  2. 6 update.php \update_check_requirements()
  3. 7 update.php \update_check_requirements()
  4. 9 core/includes/update.inc \update_check_requirements()

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

1 call to update_check_requirements()
DbUpdateController::handle in core/modules/system/src/Controller/DbUpdateController.php
Returns a database update page.

File

core/includes/update.inc, line 47
Drupal database update API.

Code

function update_check_requirements() {

  // Because this is one of the earliest points in the update process,
  // detect and fix missing schema versions for modules here to ensure
  // it runs on all update code paths.
  _update_fix_missing_schema();

  // Check requirements of all loaded modules.
  $requirements = \Drupal::moduleHandler()
    ->invokeAll('requirements', [
    'update',
  ]);
  $requirements += update_system_schema_requirements();
  return $requirements;
}