protected function ElementsLabelsTest::getFormWithLimitedProperties in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
- 9 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 148
Class
- ElementsLabelsTest
- Tests form element labels, required markers and associated output.
Namespace
Drupal\Tests\system\Functional\FormCode
protected function getFormWithLimitedProperties() {
$form = [];
$form['fieldset'] = [
'#type' => 'fieldset',
'#title' => 'Fieldset',
];
return $form;
}