You are here

public function StubForm::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Form/StubForm.php \Drupal\system\Tests\Form\StubForm::__construct()

Constructs a StubForm.

Parameters

string $form_id: The form ID.

array $form: The form array.

File

core/modules/system/src/Tests/Form/StubForm.php, line 40
Contains \Drupal\system\Tests\Form\StubForm.

Class

StubForm
Provides a stub form for testing purposes.

Namespace

Drupal\system\Tests\Form

Code

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