W3cubDocs

/Drupal 8

function update_check_requirements

update_check_requirements()

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

File

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

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!update.inc/function/update_check_requirements/8.1.x