comparison 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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
40 40
41 // Retrieve the current state of the batch. 41 // Retrieve the current state of the batch.
42 if (!$batch) { 42 if (!$batch) {
43 $batch = \Drupal::service('batch.storage')->load($request_id); 43 $batch = \Drupal::service('batch.storage')->load($request_id);
44 if (!$batch) { 44 if (!$batch) {
45 drupal_set_message(t('No active batch.'), 'error'); 45 \Drupal::messenger()->addError(t('No active batch.'));
46 return new RedirectResponse(\Drupal::url('<front>', [], ['absolute' => TRUE])); 46 return new RedirectResponse(\Drupal::url('<front>', [], ['absolute' => TRUE]));
47 } 47 }
48 } 48 }
49 49
50 // We need to store the updated batch information in the batch storage after 50 // We need to store the updated batch information in the batch storage after