You are here

public function UpdateVersionValidator::checkReadinessUpdateVersion in Automatic Updates 8.2

Validates readiness check event.

Parameters

\Drupal\automatic_updates\Event\ReadinessCheckEvent $event: The readiness check event object.

File

src/Validator/UpdateVersionValidator.php, line 80

Class

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

Namespace

Drupal\automatic_updates\Validator

Code

public function checkReadinessUpdateVersion(ReadinessCheckEvent $event) : void {

  // During readiness checks, we might not know the desired package versions,
  // which means there's nothing to validate.
  if ($event
    ->getPackageVersions()) {
    $this
      ->checkUpdateVersion($event);
  }
}