function ElementsLabelsTest::getFormWithLimitedProperties
Same name in this branch
- 11.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
Same name and namespace in other branches
- 10 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()
- 8.9.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
- main core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
- main core/modules/system/tests/src/Kernel/Form/ElementsLabelsTest.php \Drupal\Tests\system\Kernel\Form\ElementsLabelsTest::getFormWithLimitedProperties()
Return a form with element with not all properties defined.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Form/ ElementsLabelsTest.php, line 169
Class
- ElementsLabelsTest
- Tests form element labels, required markers and associated output.
Namespace
Drupal\Tests\system\Kernel\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.