public function PasswordSettingsForm::submitForm in View Password 8.4
Same name and namespace in other branches
- 8.5 src/Form/PasswordSettingsForm.php \Drupal\view_password\Form\PasswordSettingsForm::submitForm()
- 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
Namespace
Drupal\view_password\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('pwd.settings');
$config
->set('pwd.form_id_pwd', $form_state
->getValue('form_id_pwd'));
$config
->save();
return parent::submitForm($form, $form_state);
}