You are here

public function AuthorizationSettingsForm::submitForm in Authorization 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/AuthorizationSettingsForm.php, line 49

Class

AuthorizationSettingsForm
Configure authorization settings for this site.

Namespace

Drupal\authorization\Form

Code

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