You are here

public function GeocoderAutocompleteSettingsForm::submitForm in Geocoder 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/GeocoderAutocompleteSettingsForm.php, line 47

Class

GeocoderAutocompleteSettingsForm
Defines a form to configure maintenance settings for this site.

Namespace

Drupal\geocoder_autocomplete\Form

Code

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