You are here

public function StubForm::buildForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::buildForm()
  2. 9 core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::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 FormInterface::buildForm

File

core/modules/system/tests/src/Functional/Form/StubForm.php, line 52

Class

StubForm
Provides a stub form for testing purposes.

Namespace

Drupal\Tests\system\Functional\Form

Code

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