public function StubForm::buildForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Form/StubForm.php \Drupal\system\Tests\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/ src/ Tests/ Form/ StubForm.php, line 55 - Contains \Drupal\system\Tests\Form\StubForm.
Class
- StubForm
- Provides a stub form for testing purposes.
Namespace
Drupal\system\Tests\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
return $this->form;
}