From a0ebbf57dedd3647355ed859595717a219ad6038 Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 29 Nov 2019 12:10:53 +0000 Subject: [PATCH] Issue #3097465 by andypost, longwave: Remove remaining usage of deprecated ConfigSync::processBatch() --- core/modules/config/src/Form/ConfigSingleImportForm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/config/src/Form/ConfigSingleImportForm.php b/core/modules/config/src/Form/ConfigSingleImportForm.php index c8a3a114f83..59c4298e2bf 100644 --- a/core/modules/config/src/Form/ConfigSingleImportForm.php +++ b/core/modules/config/src/Form/ConfigSingleImportForm.php @@ -8,6 +8,7 @@ use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporterException; use Drupal\Core\Config\ConfigManagerInterface; use Drupal\Core\Config\Entity\ConfigEntityInterface; +use Drupal\Core\Config\Importer\ConfigImporterBatch; use Drupal\Core\Config\StorageComparer; use Drupal\Core\Config\StorageInterface; use Drupal\Core\Config\TypedConfigManagerInterface; @@ -411,14 +412,14 @@ class ConfigSingleImportForm extends ConfirmFormBase { $sync_steps = $config_importer->initialize(); $batch = [ 'operations' => [], - 'finished' => [ConfigSync::class, 'finishBatch'], + 'finished' => [ConfigImporterBatch::class, 'finish'], 'title' => $this->t('Importing configuration'), 'init_message' => $this->t('Starting configuration import.'), 'progress_message' => $this->t('Completed @current step of @total.'), 'error_message' => $this->t('Configuration import has encountered an error.'), ]; foreach ($sync_steps as $sync_step) { - $batch['operations'][] = [[ConfigSync::class, 'processBatch'], [$config_importer, $sync_step]]; + $batch['operations'][] = [[ConfigImporterBatch::class, 'process'], [$config_importer, $sync_step]]; } batch_set($batch);