function Simplest::submitForm
Same name in other branches
- 8.x-1.x ajax_example/src/Form/Simplest.php \Drupal\ajax_example\Form\Simplest::submitForm()
- 4.0.x modules/ajax_example/src/Form/Simplest.php \Drupal\ajax_example\Form\Simplest::submitForm()
Overrides FormInterface::submitForm
File
-
modules/
ajax_example/ src/ Form/ Simplest.php, line 68
Class
- Simplest
- A relatively simple AJAX demonstration form.
Namespace
Drupal\ajax_example\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// No-op. Our form doesn't need a submit handler, because the form is never
// submitted. We add the method here so we fulfill FormInterface.
}