public function PasswordStrengthSettingsForm::submitForm in Password Strength 8.2
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/ PasswordStrengthSettingsForm.php, line 60
Class
Namespace
Drupal\password_strength\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('password_strength.settings')
->set('enabled_matchers', $form_state
->getValue('matchers'))
->save();
$this
->messenger()
->addStatus('Password Strength settings have been stored');
parent::submitForm($form, $form_state);
}