You are here

public function SettingsForm::submitForm in Production check & Production monitor 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/SettingsForm.php, line 67

Class

SettingsForm
Settings form for production check.

Namespace

Drupal\prod_check\Form

Code

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