You are here

public function PendingDbUpdates::run in Automatic Updates 8

Run check.

Return value

array An array of translatable strings.

Overrides ReadinessCheckerInterface::run

File

src/ReadinessChecker/PendingDbUpdates.php, line 34

Class

PendingDbUpdates
Pending database updates checker.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

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