function update_check_requirements

Same name and namespace in other branches
  1. 7.x update.php \update_check_requirements()
  2. 9 core/includes/update.inc \update_check_requirements()
  3. 8.9.x core/includes/update.inc \update_check_requirements()
  4. 10 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

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',
    ]);
    \Drupal::moduleHandler()->alter('requirements', $requirements);
    $requirements += update_system_schema_requirements();
    return $requirements;
}

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