public function FooTableConfigForm::submitForm in FooTable 8
Same name and namespace in other branches
- 8.2 src/Form/FooTableConfigForm.php \Drupal\footable\Form\FooTableConfigForm::submitForm()
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/ FooTableConfigForm.php, line 68
Class
- FooTableConfigForm
- Configuration form for FooTable.
Namespace
Drupal\footable\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('footable.settings');
$config
->set('footable_plugin_type', $form_state
->getValue('footable_plugin_type'));
$config
->set('footable_plugin_compression', $form_state
->getValue('footable_plugin_compression'));
$config
->save();
parent::submitForm($form, $form_state);
}