diff --git a/core/modules/system/tests/modules/form_test/form_test.routing.yml b/core/modules/system/tests/modules/form_test/form_test.routing.yml index a37c9d8..1356bb1 100644 --- a/core/modules/system/tests/modules/form_test/form_test.routing.yml +++ b/core/modules/system/tests/modules/form_test/form_test.routing.yml @@ -342,6 +342,14 @@ form_test.label: requirements: _access: 'TRUE' +form_test.description: + path: '/form_test/form-descriptions' + defaults: + _content: '\Drupal\form_test\Form\FormTestForm::testDescription' + _title: 'Form description test' + requirements: + _access: 'TRUE' + form_test.state_persistence: path: '/form-test/state-persist' defaults: diff --git a/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Form/FormTestForm.php b/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Form/FormTestForm.php index 6fa4ab0..a3fd42b 100644 --- a/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Form/FormTestForm.php +++ b/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/Form/FormTestForm.php @@ -319,6 +319,15 @@ public function testLabel() { } /** + * Wraps form_description_test_form(). + * + * @todo Remove form_description_test_form(). + */ + public function testDescription() { + return drupal_get_form('form_description_test_form'); + } + + /** * Wraps form_test_state_persist(). * * @todo Remove form_test_state_persist().