You are here

public function EncryptSettingsForm::submitForm in Encrypt 8.3

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/EncryptSettingsForm.php, line 55

Class

EncryptSettingsForm
Form builder for the encrypt settings admin page.

Namespace

Drupal\encrypt\Form

Code

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