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