public function GeneralConfigForm::submitForm in Forena Reports 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/ GeneralConfigForm.php, line 78 - Implements \Drupal\forena\GeneralConfigForm
Class
- GeneralConfigForm
- Provides General Configuration form
Namespace
Drupal\forena\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('forena.settings')
->set('default_skin', $values['default_skin'])
->set('input_format', $values['input_format'])
->save();
// Call Configuration form to save changes.
parent::submitForm($form, $form_state);
}