You are here

public function SettingsForm::submitForm in Geolocation Address Link 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/SettingsForm.php, line 148

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\geolocation_address_link\Form

Code

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