You are here

public function PasswordSettingsForm::submitForm in View Password 8.5

Same name and namespace in other branches
  1. 8.4 src/Form/PasswordSettingsForm.php \Drupal\view_password\Form\PasswordSettingsForm::submitForm()
  2. 6.0.x src/Form/PasswordSettingsForm.php \Drupal\view_password\Form\PasswordSettingsForm::submitForm()

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/PasswordSettingsForm.php, line 45

Class

PasswordSettingsForm

Namespace

Drupal\view_password\Form

Code

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