diff --git a/core/modules/config/src/Form/ConfigSingleImportForm.php b/core/modules/config/src/Form/ConfigSingleImportForm.php index c9fa73e..7423812 100644 --- a/core/modules/config/src/Form/ConfigSingleImportForm.php +++ b/core/modules/config/src/Form/ConfigSingleImportForm.php @@ -408,7 +408,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { ->setProgressMessage($this->t('Completed @current step of @total.')) ->setErrorMessage($this->t('Configuration import has encountered an error.')); foreach ($sync_steps as $sync_step) { - $batch_builder ->addOperation('operations',[[ConfigSync::class, 'processBatch'], [$config_importer, $sync_step]]); + $batch_builder->addOperation([ConfigSync::class, 'processBatch'], [$config_importer, $sync_step]); } batch_set($batch_builder->toArray()); } diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php index c798d4c..0d563ae 100644 --- a/core/modules/config/src/Form/ConfigSync.php +++ b/core/modules/config/src/Form/ConfigSync.php @@ -344,7 +344,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { ->setErrorMessage($this->t('Configuration synchronization has encountered an error.')) ->setFile(__DIR__ . '/../../config.admin.inc'); foreach ($sync_steps as $sync_step) { - $batch_builder ->addOperation('operations',[[get_class($this), 'processBatch'], [$config_importer, $sync_step]]); + $batch_builder->addOperation([get_class($this), 'processBatch'], [$config_importer, $sync_step]); } batch_set($batch_builder->toArray()); }