You are here

public static function PendingDbUpdates::run in Automatic Updates 7

Run check.

Return value

array An array of translatable strings.

Overrides ReadinessCheckerInterface::run

File

ReadinessCheckers/PendingDbUpdates.php, line 11

Class

PendingDbUpdates
Pending database updates checker.

Code

public static function run() {
  $messages = [];
  if (static::areDbUpdatesPending()) {
    $messages[] = t('There are pending database updates. Please run update.php.');
  }
  return $messages;
}