public function MigrateSourceUiAdminSettingsForm::submitForm in Migrate source UI 8
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 ConfigFormBase::submitForm
File
- src/
Form/ MigrateSourceUiAdminSettingsForm.php, line 51
Class
- MigrateSourceUiAdminSettingsForm
- Settings form class.
Namespace
Drupal\migrate_source_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config(self::CONFIG_NAME);
$values = $form_state
->cleanValues()
->getValues();
foreach ($values as $key => $value) {
$config
->set($key, $value);
}
$config
->save();
parent::submitForm($form, $form_state);
}