protected function ReadinessValidationManager::getStoredValidResults in Automatic Updates 8.2
Gets stored valid results, if any.
The stored results are considered valid if the current listeners for the readiness check event are the same as the last time the event was dispatched.
Return value
\Drupal\automatic_updates\Validation\ValidationResult[]|null The stored results if available and still valid, otherwise null.
1 call to ReadinessValidationManager::getStoredValidResults()
- ReadinessValidationManager::getResults in src/
Validation/ ReadinessValidationManager.php - Gets the validation results from the last run.
File
- src/
Validation/ ReadinessValidationManager.php, line 179
Class
- ReadinessValidationManager
- Defines a manager to run readiness validation.
Namespace
Drupal\automatic_updates\ValidationCode
protected function getStoredValidResults() : ?array {
$last_run = $this->keyValueExpirable
->get('readiness_validation_last_run');
// If the listeners have not changed return the results.
if ($last_run && $last_run['listeners'] === $this
->getListenersAsString(AutomaticUpdatesEvents::READINESS_CHECK)) {
return $last_run['results'];
}
return NULL;
}