function ElementsLabelsTest::getFormWithLimitedProperties

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
  2. 8.9.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()
  3. 11.x 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\Form

Code

protected function getFormWithLimitedProperties() {
    $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.