You are here

public function ConfigForm::submitForm in Disable user 1 edit 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/ConfigForm.php, line 55

Class

ConfigForm
Class ConfigForm.

Namespace

Drupal\disable_user_1_edit\Form

Code

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