function Simplest::submitForm

Same name in other branches
  1. 3.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\Form

Code

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.
}