public function AdminSettingsForm::submitForm in Password Reset Landing Page (PRLP) 8
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/ AdminSettingsForm.php, line 68 - Contains Drupal\prlp\Form\AdminSettingsForm.
Class
- AdminSettingsForm
- Class AdminSettingsForm.
Namespace
Drupal\prlp\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('prlp.settings')
->set('password_required', $form_state
->getValue('password_required'))
->set('login_destination', $form_state
->getValue('login_destination'))
->save();
}