public function BackgroundProcessAssSettingsForm::submitForm in Background Process 8
Implements Form Submit.
Overrides ConfigFormBase::submitForm
File
- background_process_ass/
src/ Form/ BackgroundProcessAssSettingsForm.php, line 24
Class
- BackgroundProcessAssSettingsForm
- Implements BackgroundProcessAssSettingsForm Class.
Namespace
Drupal\background_process_ass\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('background_process_ass.settings');
foreach (Element::children($form) as $variable) {
$config
->set($variable, $form_state
->getValue($form[$variable]['#parents']));
}
$config
->save();
if (method_exists($this, '_submitForm')) {
$this
->_submitForm($form, $form_state);
}
parent::submitForm($form, $form_state);
}