You are here

public function TestFormWithPredefinedForm::buildForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestFormWithPredefinedForm::buildForm()
  2. 9 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 969
Contains \Drupal\Tests\Core\Form\FormBuilderTest.

Class

TestFormWithPredefinedForm

Namespace

Drupal\Tests\Core\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  return $this->form;
}