public function MapboxSettingsForm::submitForm in farmOS 2.x
File
- modules/
core/ map/ modules/ mapbox/ src/ Form/ MapboxSettingsForm.php, line 56
Class
- MapboxSettingsForm
- Provides a mapbox settings form.
Namespace
Drupal\farm_map_mapbox\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable(static::SETTINGS)
->set('api_key', $form_state
->getValue('api_key'))
->save();
parent::submitForm($form, $form_state);
}