function ElementsLabelsTest::getFormWithLimitedProperties
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
- 8.9.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
- 10 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
Return a form with element with not all properties defined.
1 call to ElementsLabelsTest::getFormWithLimitedProperties()
- ElementsLabelsTest::testFormsInThemeLessEnvironments in core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsLabelsTest.php - Tests forms in theme-less environments.
File
-
core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsLabelsTest.php, line 163
Class
- ElementsLabelsTest
- Tests form element labels, required markers and associated output.
Namespace
Drupal\Tests\system\Functional\FormCode
protected function getFormWithLimitedProperties() : array {
$form = [];
$form['fieldset'] = [
'#type' => 'fieldset',
'#title' => 'Fieldset',
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.