You are here

public function ServiceSettingsForm::submitForm in Services 8.4

Same name and namespace in other branches
  1. 9.0.x 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

ServiceSettingsForm
Class \Drupal\services\Form\ServiceSettingsForm.

Namespace

Drupal\services\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->getConfig()
    ->setData($form_state
    ->cleanValues()
    ->getValues())
    ->save();
  parent::submitForm($form, $form_state);
}