function StubForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::__construct()
  2. 10 core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::__construct()
  3. 9 core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::__construct()
  4. 8.9.x core/modules/system/tests/src/Functional/Form/StubForm.php \Drupal\Tests\system\Functional\Form\StubForm::__construct()

Constructs a StubForm.

Parameters

string $formId: The form ID.

array $form: The form array.

File

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

Class

StubForm
Provides a stub form for testing purposes.

Namespace

Drupal\Tests\system\Functional\Form

Code

public function __construct(protected $formId, protected $form) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.