public function AnonymousLoginSettings::submitForm in Anonymous login 8
Same name and namespace in other branches
- 8.2 src/Form/AnonymousLoginSettings.php \Drupal\anonymous_login\Form\AnonymousLoginSettings::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/ AnonymousLoginSettings.php, line 110
Class
- AnonymousLoginSettings
- Class AnonymousLoginSettings.
Namespace
Drupal\anonymous_login\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('anonymous_login.settings')
->set('paths', $form_state
->getValue('paths'))
->set('login_path', $form_state
->getValue('login_path'))
->set('message', $form_state
->getValue('message'))
->save();
}