public function SimpleRecaptchaTestForm::submitForm in Simple Google reCAPTCHA 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 FormInterface::submitForm
File
- tests/
modules/ simple_recaptcha_test/ src/ Form/ SimpleRecaptchaTestForm.php, line 53
Class
- SimpleRecaptchaTestForm
- Provides a basic form with file upload widget.
Namespace
Drupal\simple_recaptcha_test\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->messenger()
->addStatus('Clicked on ' . $form_state
->getTriggeringElement()['#id']);
}