You are here

public function SystemStatusSettingsForm::submitForm in System Status 8

Same name and namespace in other branches
  1. 8.2 src/Form/SystemStatusSettingsForm.php \Drupal\system_status\Form\SystemStatusSettingsForm::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/SystemStatusSettingsForm.php, line 57
Contains \Drupal\pants\Form\PantsSettingsForm.

Class

SystemStatusSettingsForm
Configure pants settings for this site.

Namespace

Drupal\system_status\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this->configFactory
    ->get('system_status.settings');
  $config
    ->set('system_status_service_allow_drupalstatus', $form_state['values']['system_status_service_allow_drupalstatus']);
  $config
    ->save();
  parent::submitForm($form, $form_state);
}