You are here

public function Maintenance200SettingsForm::submitForm in Maintenance 200 8

@inheritDoc

Overrides ConfigFormBase::submitForm

File

src/Form/Maintenance200SettingsForm.php, line 129

Class

Maintenance200SettingsForm

Namespace

Drupal\maintenance200\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('maintenance200.settings')
    ->set('maintenance200_enabled', $form_state
    ->getValue('maintenance200_enabled'))
    ->set('maintenance200_status_code', $form_state
    ->getValue('maintenance200_status_code'))
    ->save();
  parent::submitForm($form, $form_state);
}