You are here

public function FacSettingsForm::submitForm in Fast Autocomplete 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/FacSettingsForm.php, line 57

Class

FacSettingsForm
Configure Fast Autocomplete general settings.

Namespace

Drupal\fac\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->configFactory
    ->getEditable('fac.settings')
    ->set('key_interval', $form_state
    ->getValue('key_interval'))
    ->set('highlighting_script_use_cdn', $form_state
    ->getValue('highlighting_script_use_cdn'))
    ->save();
  parent::submitForm($form, $form_state);
}