public function SettingsForm::submitForm in jQuery form styler 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/ SettingsForm.php, line 63 - Contains \Drupal\form_styler\Form\SettingsForm.
Class
Namespace
Drupal\form_styler\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('form_styler.settings')
->set('form_ids', $values['form_ids'])
->set('themes_enabled', $values['themes'])
->save();
parent::submitForm($form, $form_state);
}