class PrepareCallbackTestForm

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\PrepareCallbackTestForm
  2. 10 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\PrepareCallbackTestForm
  3. 11.x core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\PrepareCallbackTestForm

A test form used for the prepareCallback() tests.

Hierarchy

Expanded class hierarchy of PrepareCallbackTestForm

File

core/tests/Drupal/Tests/Core/Form/FormStateTest.php, line 438

Namespace

Drupal\Tests\Core\Form
View source
class PrepareCallbackTestForm implements FormInterface {
    public function getFormId() {
        return 'test_form';
    }
    public function buildForm(array $form, FormStateInterface $form_state) {
        return [];
    }
    public function validateForm(array &$form, FormStateInterface $form_state) {
    }
    public function submitForm(array &$form, FormStateInterface $form_state) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
PrepareCallbackTestForm::buildForm public function Form constructor. Overrides FormInterface::buildForm
PrepareCallbackTestForm::getFormId public function Returns a unique string identifying the form. Overrides FormInterface::getFormId
PrepareCallbackTestForm::submitForm public function Form submission handler. Overrides FormInterface::submitForm
PrepareCallbackTestForm::validateForm public function Form validation handler. Overrides FormInterface::validateForm

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.