public function SettingsForm::submitForm in Simple Responsive Table 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 97
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\simple_responsive_table\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('simple_responsive_table.settings')
->set('max_width', $form_state
->getValue('max_width'))
->set('enable_admin_page', (bool) $form_state
->getValue('enable_admin_page'))
->save();
parent::submitForm($form, $form_state);
}