You are here

public function StubForm::__construct 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::__construct()
  2. 9 core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::__construct()

Constructs a StubForm.

Parameters

string $form_id: The form ID.

array $form: The form array.

File

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

Class

StubForm
Provides a stub form for testing purposes.

Namespace

Drupal\Tests\system\Functional\Form

Code

public function __construct($form_id, $form) {
  $this->formId = $form_id;
  $this->form = $form;
}