class TestFormWithPredefinedForm
Same name and namespace in other branches
- 11.x 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
- 8.9.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 971
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;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.