public function ConfigSplitExportForm::submitForm in Configuration Split 2.0.x
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ ConfigSplitExportForm.php, line 74
Class
- ConfigSplitExportForm
- The form for exporting a split.
Namespace
Drupal\config_split\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$split = $this
->getSplit();
$target = $this->manager
->singleExportTarget($split);
self::replaceStorageContents($this->manager
->singleExportPreview($split), $target);
$this
->redirect('entity.config_split.collection');
}