public function MappySettingsForm::submitForm in Mappy 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/ MappySettingsForm.php, line 133
Class
Namespace
Drupal\mappy\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('mappy.settings')
->set('google.width', $form_state
->getValue('mappy_google_width'))
->set('google.height', $form_state
->getValue('mappy_google_height'))
->set('yandex.width', $form_state
->getValue('mappy_yandex_width'))
->set('yandex.height', $form_state
->getValue('mappy_yandex_height'))
->set('yandex.version', $form_state
->getValue('mappy_yandex_version'))
->set('loading.type', $form_state
->getValue('mappy_load_pages_match'))
->set('loading.paths', $form_state
->getValue('mappy_load_pages_path'))
->save();
parent::submitForm($form, $form_state);
}