You are here

public function FooTableConfigForm::submitForm in FooTable 8.2

Same name and namespace in other branches
  1. 8 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 70

Class

FooTableConfigForm
Configuration form for FooTable.

Namespace

Drupal\footable\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('footable.settings');
  $config
    ->set('plugin_type', $form_state
    ->getValue('plugin_type'));
  $config
    ->set('plugin_compression', $form_state
    ->getValue('plugin_compression'));
  $config
    ->save();
  parent::submitForm($form, $form_state);
}