form_test.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/form_test/form_test.routing.yml
  2. 10 core/modules/system/tests/modules/form_test/form_test.routing.yml
  3. 11.x core/modules/system/tests/modules/form_test/form_test.routing.yml
core/modules/system/tests/modules/form_test/form_test.routing.yml
6 string references to YAML keys in form_test.routing.yml
ConfirmFormArrayPathTestForm::getCancelUrl in core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
Returns the route to go to if the user cancels the action.
ConfirmFormTestForm::getCancelUrl in core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
Returns the route to go to if the user cancels the action.
FormTest::testGetFormsCsrfToken in core/modules/system/tests/src/Functional/Form/FormTest.php
CSRF tokens for GET forms should not be added by default.
FormTest::testInputWithInvalidToken in core/modules/system/tests/src/Functional/Form/FormTest.php
Tests that input is retained for safe elements even with an invalid token.
FormTestAutocompleteForm::buildForm in core/modules/system/tests/modules/form_test/src/FormTestAutocompleteForm.php
Form constructor.

... See full list

File

core/modules/system/tests/modules/form_test/form_test.routing.yml

View source
  1. form_test.route1:
  2. path: '/form-test/object-builder'
  3. defaults:
  4. _form: '\Drupal\form_test\FormTestObject'
  5. requirements:
  6. _access: 'TRUE'
  7. form_test.route2:
  8. path: '/form-test/object-arguments-builder/{arg}'
  9. defaults:
  10. _form: '\Drupal\form_test\FormTestArgumentsObject'
  11. requirements:
  12. _access: 'TRUE'
  13. form_test.route3:
  14. path: '/form-test/object-service-builder'
  15. defaults:
  16. _form: 'form_test.form.serviceform'
  17. requirements:
  18. _access: 'TRUE'
  19. form_test.route4:
  20. path: '/form-test/object-controller-builder'
  21. defaults:
  22. _form: '\Drupal\form_test\FormTestControllerObject'
  23. requirements:
  24. _access: 'TRUE'
  25. form_test.route5:
  26. path: '/form-test/system-config-form'
  27. defaults:
  28. _form: '\Drupal\form_test\SystemConfigFormTestForm'
  29. requirements:
  30. _access: 'TRUE'
  31. form_test.route6:
  32. path: '/form-test/confirm-form'
  33. defaults:
  34. _form: '\Drupal\form_test\ConfirmFormTestForm'
  35. requirements:
  36. _access: 'TRUE'
  37. form_test.route7:
  38. path: '/form-test/confirm-form-array-path'
  39. defaults:
  40. _form: '\Drupal\form_test\ConfirmFormArrayPathTestForm'
  41. requirements:
  42. _access: 'TRUE'
  43. form_test.route8:
  44. path: '/form-test/autocomplete'
  45. defaults:
  46. _form: '\Drupal\form_test\FormTestAutocompleteForm'
  47. requirements:
  48. _access: 'TRUE'
  49. form_test.autocomplete_1:
  50. path: '/form-test/autocomplete-1'
  51. defaults:
  52. controller: '\Drupal\form_test\AutocompleteController::autocomplete1'
  53. requirements:
  54. _permission: 'access autocomplete test'
  55. form_test.autocomplete_2:
  56. path: '/form-test/autocomplete-2/{param}'
  57. defaults:
  58. controller: '\Drupal\form_test\AutocompleteController::autocomplete1'
  59. requirements:
  60. _permission: 'access autocomplete test'
  61. form_test.alter_form:
  62. path: '/form-test/alter'
  63. defaults:
  64. _form: '\Drupal\form_test\Form\FormTestAlterForm'
  65. _title: 'Form altering test'
  66. requirements:
  67. _access: 'TRUE'
  68. form_test.validate_form:
  69. path: '/form-test/validate'
  70. defaults:
  71. _form: '\Drupal\form_test\Form\FormTestValidateForm'
  72. _title: 'Form validation handlers test'
  73. requirements:
  74. _access: 'TRUE'
  75. form_test.validate_required:
  76. path: '/form-test/validate-required'
  77. defaults:
  78. _form: '\Drupal\form_test\Form\FormTestValidateRequiredForm'
  79. _title: 'Form #required validation'
  80. requirements:
  81. _access: 'TRUE'
  82. form_test.validate_required_no_title:
  83. path: '/form-test/validate-required-no-title'
  84. defaults:
  85. _form: '\Drupal\form_test\Form\FormTestValidateRequiredNoTitleForm'
  86. _title: 'Form #required validation without #title'
  87. requirements:
  88. _access: 'TRUE'
  89. form_test.validate_without_csrf_token:
  90. path: '/form-test/validate-no-token'
  91. defaults:
  92. _form: '\Drupal\form_test\Form\FormTestValidateNoToken'
  93. _title: 'Form validation on forms with a disabled CSRF token'
  94. requirements:
  95. _access: 'TRUE'
  96. form_test.validate_with_error_suppression:
  97. path: '/form-test/limit-validation-errors'
  98. defaults:
  99. _form: '\Drupal\form_test\Form\FormTestLimitValidationErrorsForm'
  100. _title: 'Form validation with some error suppression'
  101. requirements:
  102. _access: 'TRUE'
  103. form_test.pattern:
  104. path: '/form-test/pattern'
  105. defaults:
  106. _form: '\Drupal\form_test\Form\FormTestPatternForm'
  107. _title: 'Pattern validation'
  108. requirements:
  109. _access: 'TRUE'
  110. form_test.tableselect_checkboxes:
  111. path: '/form_test/tableselect/multiple-true'
  112. defaults:
  113. _form: '\Drupal\form_test\Form\FormTestTableSelectMultipleTrueForm'
  114. _title: 'Tableselect checkboxes test'
  115. requirements:
  116. _access: 'TRUE'
  117. form_test.tableselect_radios:
  118. path: '/form_test/tableselect/multiple-false'
  119. defaults:
  120. _form: '\Drupal\form_test\Form\FormTestTableSelectMultipleFalseForm'
  121. _title: 'Tableselect radio button test'
  122. requirements:
  123. _access: 'TRUE'
  124. form_test.tableselect_colspan:
  125. path: '/form_test/tableselect/colspan'
  126. defaults:
  127. _form: '\Drupal\form_test\Form\FormTestTableSelectColspanForm'
  128. _title: 'Tableselect colspan test'
  129. requirements:
  130. _access: 'TRUE'
  131. form_test.tableselect_empty_text:
  132. path: '/form_test/tableselect/empty-text'
  133. defaults:
  134. _form: '\Drupal\form_test\Form\FormTestTableSelectEmptyForm'
  135. _title: 'Tableselect empty text test'
  136. requirements:
  137. _access: 'TRUE'
  138. form_test.tableselect_js:
  139. path: '/form_test/tableselect/advanced-select/{test_action}'
  140. defaults:
  141. _form: '\Drupal\form_test\Form\FormTestTableSelectJsSelectForm'
  142. _title: 'Tableselect js_select tests'
  143. requirements:
  144. _access: 'TRUE'
  145. form_test.tableselect_disabled_rows:
  146. path: '/form_test/tableselect/disabled-rows/{test_action}'
  147. defaults:
  148. _form: '\Drupal\form_test\Form\FormTestTableSelectDisabledRowsForm'
  149. _title: 'Tableselect disabled rows tests'
  150. requirements:
  151. _access: 'TRUE'
  152. form_test.vertical_tabs:
  153. path: '/form_test/vertical-tabs'
  154. defaults:
  155. _form: '\Drupal\form_test\Form\FormTestVerticalTabsForm'
  156. _title: 'Vertical tabs tests'
  157. requirements:
  158. _access: 'TRUE'
  159. form_test.storage:
  160. path: '/form_test/form-storage'
  161. defaults:
  162. _form: '\Drupal\form_test\Form\FormTestStorageForm'
  163. _title: 'Form storage test'
  164. requirements:
  165. _access: 'TRUE'
  166. form_test.vertical_tabs_access:
  167. path: '/form_test/vertical-tabs-access'
  168. defaults:
  169. _form: '\Drupal\form_test\Form\FormTestVerticalTabsAccessForm'
  170. _title: 'Vertical tabs tests'
  171. requirements:
  172. _access: 'TRUE'
  173. form_test.state_clean:
  174. path: '/form_test/form-state-values-clean'
  175. defaults:
  176. _form: '\Drupal\form_test\Form\FormTestFormStateValuesCleanForm'
  177. _title: 'Form state values clearance test'
  178. requirements:
  179. _access: 'TRUE'
  180. form_test.state_clean_advanced:
  181. path: '/form_test/form-state-values-clean-advanced'
  182. defaults:
  183. _form: '\Drupal\form_test\Form\FormTestFormStateValuesCleanAdvancedForm'
  184. _title: 'Form state values clearance advanced test'
  185. requirements:
  186. _access: 'TRUE'
  187. form_test.checkbox:
  188. path: '/form-test/checkbox'
  189. defaults:
  190. _form: '\Drupal\form_test\Form\FormTestCheckboxForm'
  191. _title: 'Form test'
  192. requirements:
  193. _access: 'TRUE'
  194. form_test.select:
  195. path: '/form-test/select'
  196. defaults:
  197. _form: '\Drupal\form_test\Form\FormTestSelectForm'
  198. _title: 'Select'
  199. requirements:
  200. _access: 'TRUE'
  201. form_test.empty_select:
  202. path: '/form-test/empty-select'
  203. defaults:
  204. _form: '\Drupal\form_test\Form\FormTestEmptySelectForm'
  205. _title: 'Empty Select Element'
  206. requirements:
  207. _access: 'TRUE'
  208. form_test.language_select:
  209. path: '/form-test/language_select'
  210. defaults:
  211. _form: '\Drupal\form_test\Form\FormTestLanguageSelectForm'
  212. _title: 'Language Select'
  213. requirements:
  214. _access: 'TRUE'
  215. form_test.placeholder:
  216. path: '/form-test/placeholder-text'
  217. defaults:
  218. _form: '\Drupal\form_test\Form\FormTestPlaceholderForm'
  219. _title: 'Placeholder'
  220. requirements:
  221. _access: 'TRUE'
  222. form_test.number:
  223. path: '/form-test/number'
  224. defaults:
  225. _form: '\Drupal\form_test\Form\FormTestNumberForm'
  226. _title: 'Number'
  227. requirements:
  228. _access: 'TRUE'
  229. form_test.number_range:
  230. path: '/form-test/number/range'
  231. defaults:
  232. _form: '\Drupal\form_test\Form\FormTestNumberForm'
  233. _title: 'Range'
  234. element: 'range'
  235. requirements:
  236. _access: 'TRUE'
  237. form_test.range:
  238. path: '/form-test/range'
  239. defaults:
  240. _form: '\Drupal\form_test\Form\FormTestRangeForm'
  241. _title: 'Range'
  242. requirements:
  243. _access: 'TRUE'
  244. form_test.range_invalid:
  245. path: '/form-test/range/invalid'
  246. defaults:
  247. _form: '\Drupal\form_test\Form\FormTestRangeInvalidForm'
  248. _title: 'Invalid range'
  249. requirements:
  250. _access: 'TRUE'
  251. form_test.color:
  252. path: '/form-test/color'
  253. defaults:
  254. _form: '\Drupal\form_test\Form\FormTestColorForm'
  255. _title: 'Color'
  256. requirements:
  257. _access: 'TRUE'
  258. form_test.checkboxes_radios:
  259. path: '/form-test/checkboxes-radios/{customize}'
  260. defaults:
  261. _form: '\Drupal\form_test\Form\FormTestCheckboxesRadiosForm'
  262. _title: 'Checkboxes, Radios'
  263. customize: FALSE
  264. requirements:
  265. _access: 'TRUE'
  266. form_test.radios_checked:
  267. path: '/form-test/radios-checked'
  268. defaults:
  269. _form: '\Drupal\form_test\Form\FormTestRadiosCheckedForm'
  270. _title: 'Radios checked default value'
  271. requirements:
  272. _access: 'TRUE'
  273. form_test.email:
  274. path: '/form-test/email'
  275. defaults:
  276. _form: '\Drupal\form_test\Form\FormTestEmailForm'
  277. _title: 'Email fields'
  278. requirements:
  279. _access: 'TRUE'
  280. form_test.url:
  281. path: '/form-test/url'
  282. defaults:
  283. _form: '\Drupal\form_test\Form\FormTestUrlForm'
  284. _title: 'URL'
  285. requirements:
  286. _access: 'TRUE'
  287. form_test.response:
  288. path: '/form-test/response'
  289. defaults:
  290. _form: '\Drupal\form_test\Form\FormTestResponseForm'
  291. _title: 'Response'
  292. requirements:
  293. _access: 'TRUE'
  294. form_test.disabled_elements:
  295. path: '/form-test/disabled-elements'
  296. defaults:
  297. _form: '\Drupal\form_test\Form\FormTestDisabledElementsForm'
  298. _title: 'Form test'
  299. requirements:
  300. _access: 'TRUE'
  301. form_test.input_forgery:
  302. path: '/form-test/input-forgery'
  303. defaults:
  304. _form: '\Drupal\form_test\Form\FormTestInputForgeryForm'
  305. _title: 'Form test'
  306. requirements:
  307. _access: 'TRUE'
  308. form_test.rebuild_preservation:
  309. path: '/form-test/form-rebuild-preserve-values'
  310. defaults:
  311. _form: '\Drupal\form_test\Form\FormTestRebuildPreserveValuesForm'
  312. _title: 'Form values preservation during rebuild test'
  313. requirements:
  314. _access: 'TRUE'
  315. form_test.redirect:
  316. path: '/form-test/redirect'
  317. defaults:
  318. _form: '\Drupal\form_test\Form\FormTestRedirectForm'
  319. _title: 'Redirect test'
  320. requirements:
  321. _access: 'TRUE'
  322. form_test.label:
  323. path: '/form_test/form-labels'
  324. defaults:
  325. _form: '\Drupal\form_test\Form\FormTestLabelForm'
  326. _title: 'Form label test'
  327. requirements:
  328. _access: 'TRUE'
  329. form_test.machine_name:
  330. path: '/form-test/machine-name'
  331. defaults:
  332. _form: '\Drupal\form_test\Form\FormTestMachineNameForm'
  333. _title: 'Machine name fields'
  334. requirements:
  335. _access: 'TRUE'
  336. form_test.state_persistence:
  337. path: '/form-test/state-persist'
  338. defaults:
  339. _form: '\Drupal\form_test\Form\FormTestStatePersistForm'
  340. _title: 'Form state persistence without storage'
  341. requirements:
  342. _access: 'TRUE'
  343. form_test.clicked_button:
  344. path: '/form-test/clicked-button/{first}/{second}/{third}'
  345. defaults:
  346. _form: '\Drupal\form_test\Form\FormTestClickedButtonForm'
  347. _title: 'Clicked button test'
  348. first: NULL
  349. second: NULL
  350. third: NULL
  351. requirements:
  352. _access: 'TRUE'
  353. form_test.checkboxes_zero:
  354. path: '/form-test/checkboxes-zero/{json}'
  355. defaults:
  356. _form: '\Drupal\form_test\Form\FormTestCheckboxesZeroForm'
  357. _title: 'FAPI test involving checkboxes and zero'
  358. requirements:
  359. _access: 'TRUE'
  360. form_test.required:
  361. path: '/form-test/required-attribute'
  362. defaults:
  363. _form: '\Drupal\form_test\Form\FormTestRequiredAttributeForm'
  364. _title: 'Required'
  365. requirements:
  366. _access: 'TRUE'
  367. form_test.button_class:
  368. path: '/form-test/button-class'
  369. defaults:
  370. _form: '\Drupal\form_test\Form\FormTestButtonClassForm'
  371. _title: 'Button class testing'
  372. requirements:
  373. _access: 'TRUE'
  374. form_test.details_form:
  375. path: '/form_test/details-form'
  376. defaults:
  377. _form: '\Drupal\form_test\Form\FormTestDetailsForm'
  378. _title: 'Form details form test'
  379. requirements:
  380. _access: 'TRUE'
  381. form_test.description_display:
  382. path: '/form_test/form-descriptions'
  383. defaults:
  384. _form: '\Drupal\form_test\Form\FormTestDescriptionForm'
  385. _title: 'Form description test'
  386. requirements:
  387. _access: 'TRUE'
  388. form_test.group_details:
  389. path: '/form-test/group-details/{required}'
  390. defaults:
  391. _form: '\Drupal\form_test\Form\FormTestGroupDetailsForm'
  392. _title: 'Group details testing'
  393. required: FALSE
  394. requirements:
  395. _access: 'TRUE'
  396. form_test.group_container:
  397. path: '/form-test/group-container'
  398. defaults:
  399. _form: '\Drupal\form_test\Form\FormTestGroupContainerForm'
  400. _title: 'Group container testing'
  401. requirements:
  402. _access: 'TRUE'
  403. form_test.group_fieldset:
  404. path: '/form-test/group-fieldset/{required}'
  405. defaults:
  406. _form: '\Drupal\form_test\Form\FormTestGroupFieldsetForm'
  407. _title: 'Group fieldset testing'
  408. required: FALSE
  409. requirements:
  410. _access: 'TRUE'
  411. form_test.group_vertical_tabs:
  412. path: '/form-test/group-vertical-tabs'
  413. defaults:
  414. _form: '\Drupal\form_test\Form\FormTestGroupVerticalTabsForm'
  415. _title: 'Group vertical tabs testing'
  416. requirements:
  417. _access: 'TRUE'
  418. form_test.two_instances:
  419. path: '/form-test/two-instances-of-same-form'
  420. defaults:
  421. _controller: '\Drupal\form_test\Controller\FormTestController::twoFormInstances'
  422. requirements:
  423. _module_dependencies: 'node'
  424. _permission: 'create page content'
  425. form_test.storage_legacy_handler:
  426. path: '/form-test/form-storage-legacy/{form_build_id}'
  427. defaults:
  428. _controller: '\Drupal\form_test\Controller\FormTestController::storageLegacyHandler'
  429. form_build_id: NULL
  430. requirements:
  431. _access: 'TRUE'
  432. form_test.form_storage_page_cache:
  433. path: '/form-test/form-storage-page-cache'
  434. defaults:
  435. _form: '\Drupal\form_test\Form\FormTestStoragePageCacheForm'
  436. _title: 'Form storage with page cache test'
  437. requirements:
  438. _access: 'TRUE'
  439. form_test.get_form:
  440. path: '/form-test/get-form'
  441. defaults:
  442. _form: '\Drupal\form_test\Form\FormTestGetForm'
  443. requirements:
  444. _access: 'TRUE'
  445. form_test.machine_name_validation:
  446. path: '/form-test/form-test-machine-name-validation'
  447. defaults:
  448. _form: '\Drupal\form_test\Form\FormTestMachineNameValidationForm'
  449. _title: 'Form machine name validation test'
  450. requirements:
  451. _access: 'TRUE'
  452. form_test.optional_container:
  453. path: '/form-test/optional-container'
  454. defaults:
  455. _form: '\Drupal\form_test\Form\FormTestOptionalContainerForm'
  456. _title: 'Optional container testing'
  457. requirements:
  458. _access: 'TRUE'
  459. form_test.javascript_states_form:
  460. path: '/form-test/javascript-states-form'
  461. defaults:
  462. _form: '\Drupal\form_test\Form\JavascriptStatesForm'
  463. requirements:
  464. _access: 'TRUE'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.