class 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 995
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.