public function YamapsForm::submitForm in Yandex.Maps 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/ YamapsForm.php, line 42
Class
- YamapsForm
- Provides forms for managing Node Order.
Namespace
Drupal\yamaps\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('yamaps.settings')
->set('yamaps_api_key', $form_state
->getValue('yamaps_api_key'))
->save();
parent::submitForm($form, $form_state);
}