public function ServiceSettingsForm::submitForm in Services 9.0.x
Same name and namespace in other branches
- 8.4 src/Form/ServiceSettingsForm.php \Drupal\services\Form\ServiceSettingsForm::submitForm()
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/ ServiceSettingsForm.php, line 64
Class
Namespace
Drupal\services\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->getConfig()
->setData($form_state
->cleanValues()
->getValues())
->save();
parent::submitForm($form, $form_state);
}