You are here

public function MapSettingsForm::submitForm in farmOS 2.x

File

modules/core/map/src/Form/MapSettingsForm.php, line 56

Class

MapSettingsForm
Provides a farm_map settings form.

Namespace

Drupal\farm_map\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->configFactory
    ->getEditable(static::SETTINGS)
    ->set('enable_side_panel', $form_state
    ->getValue('enable_side_panel'))
    ->save();
  parent::submitForm($form, $form_state);
}