public function TablesawSettings::submitForm in Responsive Tables Filter 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/ TablesawSettings.php, line 64
Class
- TablesawSettings
- Configure settings for the Responsive Tables Filter module.
Namespace
Drupal\responsive_tables_filter\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable(static::SETTINGS)
->set('views_enabled', $form_state
->getValue('views_enabled'))
->set('views_tablesaw_mode', $form_state
->getValue('views_tablesaw_mode'))
->save();
parent::submitForm($form, $form_state);
}