Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. update.inc

function 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 48

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;
}
RSS feed
Powered by Drupal