public function ConfigDevelSettingsForm::submitForm in Configuration development 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/ ConfigDevelSettingsForm.php, line 70
Class
- ConfigDevelSettingsForm
- Settings form for config devel.
Namespace
Drupal\config_devel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$auto_import = array();
foreach ($form_state
->getValues()['auto_import'] as $file) {
$auto_import[] = array(
'filename' => $file,
'hash' => '',
);
}
$this
->config(static::CONFIGNAME)
->set('auto_import', $auto_import)
->set('auto_export', $form_state
->getValues()['auto_export'])
->save();
parent::submitForm($form, $form_state);
}