form_test.routing.yml

Same filename in other branches
  1. 9 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
7 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.
ConfirmFormTest::testConfirmFormWithExternalDestination in core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php
Tests that the confirm form does not use external destinations.
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.

... 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_suppresion:
  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.vertical_tabs:
  146. path: '/form_test/vertical-tabs'
  147. defaults:
  148. _form: '\Drupal\form_test\Form\FormTestVerticalTabsForm'
  149. _title: 'Vertical tabs tests'
  150. requirements:
  151. _access: 'TRUE'
  152. form_test.storage:
  153. path: '/form_test/form-storage'
  154. defaults:
  155. _form: '\Drupal\form_test\Form\FormTestStorageForm'
  156. _title: 'Form storage test'
  157. requirements:
  158. _access: 'TRUE'
  159. form_test.vertical_tabs_access:
  160. path: '/form_test/vertical-tabs-access'
  161. defaults:
  162. _form: '\Drupal\form_test\Form\FormTestVerticalTabsAccessForm'
  163. _title: 'Vertical tabs tests'
  164. requirements:
  165. _access: 'TRUE'
  166. form_test.state_clean:
  167. path: '/form_test/form-state-values-clean'
  168. defaults:
  169. _form: '\Drupal\form_test\Form\FormTestFormStateValuesCleanForm'
  170. _title: 'Form state values clearance test'
  171. requirements:
  172. _access: 'TRUE'
  173. form_test.state_clean_advanced:
  174. path: '/form_test/form-state-values-clean-advanced'
  175. defaults:
  176. _form: '\Drupal\form_test\Form\FormTestFormStateValuesCleanAdvancedForm'
  177. _title: 'Form state values clearance advanced test'
  178. requirements:
  179. _access: 'TRUE'
  180. form_test.checkbox:
  181. path: '/form-test/checkbox'
  182. defaults:
  183. _form: '\Drupal\form_test\Form\FormTestCheckboxForm'
  184. _title: 'Form test'
  185. requirements:
  186. _access: 'TRUE'
  187. form_test.select:
  188. path: '/form-test/select'
  189. defaults:
  190. _form: '\Drupal\form_test\Form\FormTestSelectForm'
  191. _title: 'Select'
  192. requirements:
  193. _access: 'TRUE'
  194. form_test.empty_select:
  195. path: '/form-test/empty-select'
  196. defaults:
  197. _form: '\Drupal\form_test\Form\FormTestEmptySelectForm'
  198. _title: 'Empty Select Element'
  199. requirements:
  200. _access: 'TRUE'
  201. form_test.language_select:
  202. path: '/form-test/language_select'
  203. defaults:
  204. _form: '\Drupal\form_test\Form\FormTestLanguageSelectForm'
  205. _title: 'Language Select'
  206. requirements:
  207. _access: 'TRUE'
  208. form_test.placeholder:
  209. path: '/form-test/placeholder-text'
  210. defaults:
  211. _form: '\Drupal\form_test\Form\FormTestPlaceholderForm'
  212. _title: 'Placeholder'
  213. requirements:
  214. _access: 'TRUE'
  215. form_test.number:
  216. path: '/form-test/number'
  217. defaults:
  218. _form: '\Drupal\form_test\Form\FormTestNumberForm'
  219. _title: 'Number'
  220. requirements:
  221. _access: 'TRUE'
  222. form_test.number_range:
  223. path: '/form-test/number/range'
  224. defaults:
  225. _form: '\Drupal\form_test\Form\FormTestNumberForm'
  226. _title: 'Range'
  227. element: 'range'
  228. requirements:
  229. _access: 'TRUE'
  230. form_test.range:
  231. path: '/form-test/range'
  232. defaults:
  233. _form: '\Drupal\form_test\Form\FormTestRangeForm'
  234. _title: 'Range'
  235. requirements:
  236. _access: 'TRUE'
  237. form_test.range_invalid:
  238. path: '/form-test/range/invalid'
  239. defaults:
  240. _form: '\Drupal\form_test\Form\FormTestRangeInvalidForm'
  241. _title: 'Invalid range'
  242. requirements:
  243. _access: 'TRUE'
  244. form_test.color:
  245. path: '/form-test/color'
  246. defaults:
  247. _form: '\Drupal\form_test\Form\FormTestColorForm'
  248. _title: 'Color'
  249. requirements:
  250. _access: 'TRUE'
  251. form_test.checkboxes_radios:
  252. path: '/form-test/checkboxes-radios/{customize}'
  253. defaults:
  254. _form: '\Drupal\form_test\Form\FormTestCheckboxesRadiosForm'
  255. _title: 'Checkboxes, Radios'
  256. customize: FALSE
  257. requirements:
  258. _access: 'TRUE'
  259. form_test.radios_checked:
  260. path: '/form-test/radios-checked'
  261. defaults:
  262. _form: '\Drupal\form_test\Form\FormTestRadiosCheckedForm'
  263. _title: 'Radios checked defalt value'
  264. requirements:
  265. _access: 'TRUE'
  266. form_test.email:
  267. path: '/form-test/email'
  268. defaults:
  269. _form: '\Drupal\form_test\Form\FormTestEmailForm'
  270. _title: 'Email fields'
  271. requirements:
  272. _access: 'TRUE'
  273. form_test.url:
  274. path: '/form-test/url'
  275. defaults:
  276. _form: '\Drupal\form_test\Form\FormTestUrlForm'
  277. _title: 'URL'
  278. requirements:
  279. _access: 'TRUE'
  280. form_test.response:
  281. path: '/form-test/response'
  282. defaults:
  283. _form: '\Drupal\form_test\Form\FormTestResponseForm'
  284. _title: 'Response'
  285. requirements:
  286. _access: 'TRUE'
  287. form_test.disabled_elements:
  288. path: '/form-test/disabled-elements'
  289. defaults:
  290. _form: '\Drupal\form_test\Form\FormTestDisabledElementsForm'
  291. _title: 'Form test'
  292. requirements:
  293. _access: 'TRUE'
  294. form_test.input_forgery:
  295. path: '/form-test/input-forgery'
  296. defaults:
  297. _form: '\Drupal\form_test\Form\FormTestInputForgeryForm'
  298. _title: 'Form test'
  299. requirements:
  300. _access: 'TRUE'
  301. form_test.rebuild_preservation:
  302. path: '/form-test/form-rebuild-preserve-values'
  303. defaults:
  304. _form: '\Drupal\form_test\Form\FormTestRebuildPreserveValuesForm'
  305. _title: 'Form values preservation during rebuild test'
  306. requirements:
  307. _access: 'TRUE'
  308. form_test.redirect:
  309. path: '/form-test/redirect'
  310. defaults:
  311. _form: '\Drupal\form_test\Form\FormTestRedirectForm'
  312. _title: 'Redirect test'
  313. requirements:
  314. _access: 'TRUE'
  315. form_test.label:
  316. path: '/form_test/form-labels'
  317. defaults:
  318. _form: '\Drupal\form_test\Form\FormTestLabelForm'
  319. _title: 'Form label test'
  320. requirements:
  321. _access: 'TRUE'
  322. form_test.machine_name:
  323. path: '/form-test/machine-name'
  324. defaults:
  325. _form: '\Drupal\form_test\Form\FormTestMachineNameForm'
  326. _title: 'Machine name fields'
  327. requirements:
  328. _access: 'TRUE'
  329. form_test.state_persistence:
  330. path: '/form-test/state-persist'
  331. defaults:
  332. _form: '\Drupal\form_test\Form\FormTestStatePersistForm'
  333. _title: 'Form state persistence without storage'
  334. requirements:
  335. _access: 'TRUE'
  336. form_test.clicked_button:
  337. path: '/form-test/clicked-button/{first}/{second}/{third}'
  338. defaults:
  339. _form: '\Drupal\form_test\Form\FormTestClickedButtonForm'
  340. _title: 'Clicked button test'
  341. first: NULL
  342. second: NULL
  343. third: NULL
  344. requirements:
  345. _access: 'TRUE'
  346. form_test.checkboxes_zero:
  347. path: '/form-test/checkboxes-zero/{json}'
  348. defaults:
  349. _form: '\Drupal\form_test\Form\FormTestCheckboxesZeroForm'
  350. _title: 'FAPI test involving checkboxes and zero'
  351. requirements:
  352. _access: 'TRUE'
  353. form_test.required:
  354. path: '/form-test/required-attribute'
  355. defaults:
  356. _form: '\Drupal\form_test\Form\FormTestRequiredAttributeForm'
  357. _title: 'Required'
  358. requirements:
  359. _access: 'TRUE'
  360. form_test.button_class:
  361. path: '/form-test/button-class'
  362. defaults:
  363. _form: '\Drupal\form_test\Form\FormTestButtonClassForm'
  364. _title: 'Button class testing'
  365. requirements:
  366. _access: 'TRUE'
  367. form_test.details_form:
  368. path: '/form_test/details-form'
  369. defaults:
  370. _form: '\Drupal\form_test\Form\FormTestDetailsForm'
  371. _title: 'Form details form test'
  372. requirements:
  373. _access: 'TRUE'
  374. form_test.description_display:
  375. path: '/form_test/form-descriptions'
  376. defaults:
  377. _form: '\Drupal\form_test\Form\FormTestDescriptionForm'
  378. _title: 'Form description test'
  379. requirements:
  380. _access: 'TRUE'
  381. form_test.group_details:
  382. path: '/form-test/group-details/{required}'
  383. defaults:
  384. _form: '\Drupal\form_test\Form\FormTestGroupDetailsForm'
  385. _title: 'Group details testing'
  386. required: FALSE
  387. requirements:
  388. _access: 'TRUE'
  389. form_test.group_container:
  390. path: '/form-test/group-container'
  391. defaults:
  392. _form: '\Drupal\form_test\Form\FormTestGroupContainerForm'
  393. _title: 'Group container testing'
  394. requirements:
  395. _access: 'TRUE'
  396. form_test.group_fieldset:
  397. path: '/form-test/group-fieldset/{required}'
  398. defaults:
  399. _form: '\Drupal\form_test\Form\FormTestGroupFieldsetForm'
  400. _title: 'Group fieldset testing'
  401. required: FALSE
  402. requirements:
  403. _access: 'TRUE'
  404. form_test.group_vertical_tabs:
  405. path: '/form-test/group-vertical-tabs'
  406. defaults:
  407. _form: '\Drupal\form_test\Form\FormTestGroupVerticalTabsForm'
  408. _title: 'Group vertical tabs testing'
  409. requirements:
  410. _access: 'TRUE'
  411. form_test.two_instances:
  412. path: '/form-test/two-instances-of-same-form'
  413. defaults:
  414. _controller: '\Drupal\form_test\Controller\FormTestController::twoFormInstances'
  415. requirements:
  416. _module_dependencies: 'node'
  417. _permission: 'create page content'
  418. form_test.storage_legacy_handler:
  419. path: '/form-test/form-storage-legacy/{form_build_id}'
  420. defaults:
  421. _controller: '\Drupal\form_test\Controller\FormTestController::storageLegacyHandler'
  422. form_build_id: NULL
  423. requirements:
  424. _access: 'TRUE'
  425. form_test.form_storage_page_cache:
  426. path: '/form-test/form-storage-page-cache'
  427. defaults:
  428. _form: '\Drupal\form_test\Form\FormTestStoragePageCacheForm'
  429. _title: 'Form storage with page cache test'
  430. requirements:
  431. _access: 'TRUE'
  432. form_test.get_form:
  433. path: '/form-test/get-form'
  434. defaults:
  435. _form: '\Drupal\form_test\Form\FormTestGetForm'
  436. requirements:
  437. _access: 'TRUE'
  438. form_test.machine_name_validation:
  439. path: '/form-test/form-test-machine-name-validation'
  440. defaults:
  441. _form: '\Drupal\form_test\Form\FormTestMachineNameValidationForm'
  442. _title: 'Form machine name validation test'
  443. requirements:
  444. _access: 'TRUE'
  445. form_test.optional_container:
  446. path: '/form-test/optional-container'
  447. defaults:
  448. _form: '\Drupal\form_test\Form\FormTestOptionalContainerForm'
  449. _title: 'Optional container testing'
  450. requirements:
  451. _access: 'TRUE'
  452. form_test.javascript_states_form:
  453. path: '/form-test/javascript-states-form'
  454. defaults:
  455. _form: '\Drupal\form_test\Form\JavascriptStatesForm'
  456. requirements:
  457. _access: 'TRUE'

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