summaryrefslogtreecommitdiffstats
path: root/core/modules/update/update.manager.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/update/update.manager.inc')
-rw-r--r--core/modules/update/update.manager.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/update/update.manager.inc b/core/modules/update/update.manager.inc
index 2229f0a..c3f4681 100644
--- a/core/modules/update/update.manager.inc
+++ b/core/modules/update/update.manager.inc
@@ -53,17 +53,17 @@ function update_manager_download_batch_finished($success, $results) {
'#title' => t('Downloading updates failed:'),
'#items' => $results['errors'],
];
- drupal_set_message(\Drupal::service('renderer')->render($item_list), 'error');
+ \Drupal::messenger()->addError(\Drupal::service('renderer')->render($item_list));
}
elseif ($success) {
- drupal_set_message(t('Updates downloaded successfully.'));
+ \Drupal::messenger()->addStatus(t('Updates downloaded successfully.'));
$_SESSION['update_manager_update_projects'] = $results['projects'];
return new RedirectResponse(\Drupal::url('update.confirmation_page', [], ['absolute' => TRUE]));
}
else {
// Ideally we're catching all Exceptions, so they should never see this,
// but just in case, we have to tell them something.
- drupal_set_message(t('Fatal error trying to download.'), 'error');
+ \Drupal::messenger()->addError(t('Fatal error trying to download.'));
}
}