You are here

public function UpdateVersionValidator::__construct in Automatic Updates 8.2

Constructs a UpdateVersionValidation object.

Parameters

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

File

src/Validator/UpdateVersionValidator.php, line 27

Class

UpdateVersionValidator
Validates that core updates are within a supported version range.

Namespace

Drupal\automatic_updates\Validator

Code

public function __construct(TranslationInterface $translation) {
  $this
    ->setStringTranslation($translation);
}