public function MailLoginAdminSettingsForm::submitForm in Mail Login 8
Same name and namespace in other branches
- 8.2 src/Form/MailLoginAdminSettingsForm.php \Drupal\mail_login\Form\MailLoginAdminSettingsForm::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/ MailLoginAdminSettingsForm.php, line 89
Class
- MailLoginAdminSettingsForm
- Configure Mail Login settings.
Namespace
Drupal\mail_login\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('mail_login.settings');
$config
->set('mail_login_enabled', $form_state
->getValue('mail_login_enabled'))
->set('mail_login_override_login_labels', $form_state
->getValue('mail_login_override_login_labels'))
->set('mail_login_username_title', $form_state
->getValue('mail_login_username_title'))
->set('mail_login_username_description', $form_state
->getValue('mail_login_username_description'))
->save();
parent::submitForm($form, $form_state);
}