class TestFormWithPredefinedForm
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm
- 10 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm
- 11.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm
Hierarchy
- class \Drupal\Tests\Core\Form\TestForm implements \Drupal\Core\Form\FormInterface
- class \Drupal\Tests\Core\Form\TestFormWithPredefinedForm extends \Drupal\Tests\Core\Form\TestForm
Expanded class hierarchy of TestFormWithPredefinedForm
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php, line 958
Namespace
Drupal\Tests\Core\FormView source
class TestFormWithPredefinedForm extends TestForm {
/**
* @var array
*/
protected $form;
public function setForm($form) {
$this->form = $form;
}
public function buildForm(array $form, FormStateInterface $form_state) {
return $this->form;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
TestForm::getFormId | public | function | Returns a unique string identifying the form. | Overrides FormInterface::getFormId |
TestForm::submitForm | public | function | Form submission handler. | Overrides FormInterface::submitForm |
TestForm::validateForm | public | function | Form validation handler. | Overrides FormInterface::validateForm |
TestFormWithPredefinedForm::$form | protected | property | ||
TestFormWithPredefinedForm::buildForm | public | function | Form constructor. | Overrides TestForm::buildForm |
TestFormWithPredefinedForm::setForm | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.