Skip to content
Snippets Groups Projects

Issue #3275883: Warn if cron updates are enabled and the site is on an unsupported branch

Merged Issue #3275883: Warn if cron updates are enabled and the site is on an unsupported branch
All threads resolved!
All threads resolved!
2 files
+ 29
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -148,10 +148,19 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
@@ -148,10 +148,19 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
$messages = $this->validateVersion($stage, $target_version);
$messages = $this->validateVersion($stage, $target_version);
if ($messages) {
if ($messages) {
$summary = $this->t('Updating from Drupal @installed_version to @target_version is not allowed.', [
$installed_version = $this->getInstalledVersion();
'@installed_version' => $this->getInstalledVersion(),
'@target_version' => $target_version,
if ($target_version) {
]);
$summary = $this->t('Updating from Drupal @installed_version to @target_version is not allowed.', [
 
'@installed_version' => $installed_version,
 
'@target_version' => $target_version,
 
]);
 
}
 
else {
 
$summary = $this->t('Updating from Drupal @installed_version is not allowed.', [
 
'@installed_version' => $installed_version,
 
]);
 
}
$event->addError($messages, $summary);
$event->addError($messages, $summary);
}
}
}
}
Loading