public function TestFormWithPredefinedForm::buildForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides TestForm::buildForm
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php, line 908 - Contains \Drupal\Tests\Core\Form\FormBuilderTest.
Class
Namespace
Drupal\Tests\Core\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
return $this->form;
}