diff core/includes/batch.inc @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
line wrap: on
line diff
--- a/core/includes/batch.inc	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/includes/batch.inc	Thu Feb 28 13:21:36 2019 +0000
@@ -42,7 +42,7 @@
   if (!$batch) {
     $batch = \Drupal::service('batch.storage')->load($request_id);
     if (!$batch) {
-      drupal_set_message(t('No active batch.'), 'error');
+      \Drupal::messenger()->addError(t('No active batch.'));
       return new RedirectResponse(\Drupal::url('<front>', [], ['absolute' => TRUE]));
     }
   }