class PrepareCallbackTestForm in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\PrepareCallbackTestForm
A test form used for the prepareCallback() tests.
Hierarchy
- class \Drupal\Tests\Core\Form\PrepareCallbackTestForm implements FormInterface
Expanded class hierarchy of PrepareCallbackTestForm
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateTest.php, line 438 - Contains \Drupal\Tests\Core\Form\FormStateTest.
Namespace
Drupal\Tests\Core\FormView source
class PrepareCallbackTestForm implements FormInterface {
public function getFormId() {
return 'test_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {
}
public function validateForm(array &$form, FormStateInterface $form_state) {
}
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrepareCallbackTestForm:: |
public | function |
Form constructor. Overrides FormInterface:: |
|
PrepareCallbackTestForm:: |
public | function |
Returns a unique string identifying the form. Overrides FormInterface:: |
|
PrepareCallbackTestForm:: |
public | function |
Form submission handler. Overrides FormInterface:: |
|
PrepareCallbackTestForm:: |
public | function |
Form validation handler. Overrides FormInterface:: |