public function SpamspanTestForm::submitForm in SpamSpan filter 8
Same name and namespace in other branches
- 8.2 src/Form/SpamspanTestForm.php \Drupal\spamspan\Form\SpamspanTestForm::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 FormInterface::submitForm
File
- src/
Form/ SpamspanTestForm.php, line 108
Class
- SpamspanTestForm
- Implements an example form.
Namespace
Drupal\spamspan\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->setStorage($form_state
->getValues());
$form_state
->setRebuild();
}