ReadinessTrait.php in Automatic Updates 8.2
File
src/Validation/ReadinessTrait.php
View source
<?php
namespace Drupal\automatic_updates\Validation;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\system\SystemManager;
trait ReadinessTrait {
protected function getFailureMessageForSeverity(int $severity) : TranslatableMarkup {
return $severity === SystemManager::REQUIREMENT_WARNING ? $this
->t('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might affect the eligibility for automatic updates.') : $this
->t('Your site does not pass some readiness checks for automatic updates. It cannot be automatically updated until further action is performed.');
}
}