You are here

public function M4032404Form::submitForm in 403 to 404 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/M4032404Form.php, line 46

Class

M4032404Form
Class M4032404Form.

Namespace

Drupal\m4032404\Form

Code

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