class TestFormWithPredefinedForm in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm
Hierarchy
- class \Drupal\Tests\Core\Form\TestForm implements FormInterface
- class \Drupal\Tests\Core\Form\TestFormWithPredefinedForm
Expanded class hierarchy of TestFormWithPredefinedForm
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php, line 958 - Contains \Drupal\Tests\Core\Form\FormBuilderTest.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestForm:: |
public | function |
Returns a unique string identifying the form. Overrides FormInterface:: |
|
TestForm:: |
public | function |
Form submission handler. Overrides FormInterface:: |
|
TestForm:: |
public | function |
Form validation handler. Overrides FormInterface:: |
|
TestFormWithPredefinedForm:: |
protected | property | ||
TestFormWithPredefinedForm:: |
public | function |
Form constructor. Overrides TestForm:: |
|
TestFormWithPredefinedForm:: |
public | function |