public function GmapFieldSettingsForm::submitForm in Google Map Field 8
Implements \Drupal\Core\Form\FormInterface:submitForm()
Overrides ConfigFormBase::submitForm
File
- src/
Form/ GmapFieldSettingsForm.php, line 130 - Contains \Drupal\google_map_field\Form\GmapFieldSettingsForm.
Class
- GmapFieldSettingsForm
- Administration settings form.
Namespace
Drupal\google_map_field\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->configFactory
->getEditable('google_map_field.settings');
$config
->set('google_map_field_auth_method', $form_state
->getValue('google_map_field_auth_method'))
->set('google_map_field_apikey', $form_state
->getValue('google_map_field_apikey'))
->set('google_map_field_map_client_id', $form_state
->getValue('google_map_field_map_client_id'))
->set('google_map_field_icon', $form_state
->getValue('google_map_field_icon'))
->save();
parent::submitForm($form, $form_state);
}