You are here

public function PendingUpdatesValidator::__construct in Automatic Updates 8.2

Constructs an PendingUpdatesValidator object.

Parameters

string $app_root: The Drupal root.

\Drupal\Core\Update\UpdateRegistry $update_registry: The update registry service.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.

File

src/Validator/PendingUpdatesValidator.php, line 45

Class

PendingUpdatesValidator
Validates that there are no pending database updates.

Namespace

Drupal\automatic_updates\Validator

Code

public function __construct(string $app_root, UpdateRegistry $update_registry, TranslationInterface $translation) {
  $this->appRoot = $app_root;
  $this->updateRegistry = $update_registry;
  $this
    ->setStringTranslation($translation);
}