public function InviteConfig::submitForm in Invite 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/ InviteConfig.php, line 108
Class
- InviteConfig
- Class InviteConfig.
Namespace
Drupal\invite\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('invite.invite_config')
->set('invite_expiration', $form_state
->getValue('invite_expiration'))
->set('accept_redirect', $form_state
->getValue('accept_redirect'))
->save();
}