form_api_example.routing.yml

Same filename in other branches
  1. 3.x modules/form_api_example/form_api_example.routing.yml
  2. 4.0.x modules/form_api_example/form_api_example.routing.yml
form_api_example/form_api_example.routing.yml
16 string references to YAML keys in form_api_example.routing.yml
AjaxColorFormTest::testModalForm in form_api_example/tests/src/FunctionalJavascript/AjaxColorFormTest.php
Functional test of the color temperature AJAX dropdown form.
FapiExampleTest::doTestAjaxAddMore in form_api_example/tests/src/Functional/FapiExampleTest.php
Test the Ajax Add More demo form.
FapiExampleTest::doTestAjaxColorForm in form_api_example/tests/src/Functional/FapiExampleTest.php
Test the ajax demo form.
FapiExampleTest::doTestBuildDemo in form_api_example/tests/src/Functional/FapiExampleTest.php
Test the build demo form.
FapiExampleTest::doTestContainerDemoForm in form_api_example/tests/src/Functional/FapiExampleTest.php
Test the container demo form.

... See full list

File

form_api_example/form_api_example.routing.yml

View source
  1. # This routing.yml file makes both the fapi example description page and the
  2. # included sample forms available at specific URL's on your site. A route
  3. # maps a URL path to a controller. For page controllers it defines the
  4. # function or method that will be called when the page is accessed. For form
  5. # controllers the content is determined by the buildForm method defined by the
  6. # form controller implementation.
  7. # Access to these paths is restricted to users with the permission
  8. # 'access content'. This is notated as _permission: 'access content'.
  9. # Menu items corresponding to these URLs are defined separately in the
  10. # form_api_example.links.menu.yml file.
  11. form_api_example.description:
  12. path: '/examples/form-api-example'
  13. defaults:
  14. _controller: '\Drupal\form_api_example\Controller\Page::description'
  15. _title: 'Form API Examples'
  16. requirements:
  17. _permission: 'access content'
  18. form_api_example.simple_form:
  19. path: '/examples/form-api-example/simple-form'
  20. defaults:
  21. _form: '\Drupal\form_api_example\Form\SimpleForm'
  22. _title: 'Simple form'
  23. requirements:
  24. _permission: 'access content'
  25. form_api_example.input_demo:
  26. path: '/examples/form-api-example/input-demo'
  27. defaults:
  28. _form: '\Drupal\form_api_example\Form\InputDemo'
  29. _title: 'Common input elements'
  30. requirements:
  31. _permission: 'access content'
  32. form_api_example.state_demo:
  33. path: '/examples/form-api-example/state-demo'
  34. defaults:
  35. _form: '\Drupal\form_api_example\Form\StateDemo'
  36. _title: 'Form state binding'
  37. requirements:
  38. _permission: 'access content'
  39. form_api_example.container_demo:
  40. path: '/examples/form-api-example/container-demo'
  41. defaults:
  42. _form: '\Drupal\form_api_example\Form\ContainerDemo'
  43. _title: 'Container elements'
  44. requirements:
  45. _permission: 'access content'
  46. form_api_example.vertical_tabs_demo:
  47. path: '/examples/form-api-example/vertical-tabs-demo'
  48. defaults:
  49. _form: '\Drupal\form_api_example\Form\VerticalTabsDemo'
  50. _title: 'Vertical tab elements'
  51. requirements:
  52. _permission: 'access content'
  53. form_api_example.modal_form:
  54. path: '/examples/form-api-example/modal-form/{nojs}'
  55. defaults:
  56. _form: '\Drupal\form_api_example\Form\ModalForm'
  57. _title: 'Modal form'
  58. nojs: ajax
  59. requirements:
  60. _permission: 'access content'
  61. form_api_example.ajax_color_demo:
  62. path: '/examples/form-api-example/ajax-color-demo'
  63. defaults:
  64. _form: '\Drupal\form_api_example\Form\AjaxColorForm'
  65. _title: 'AJAX color form'
  66. requirements:
  67. _permission: 'access content'
  68. form_api_example.build_demo:
  69. path: '/examples/form-api-example/build-demo'
  70. defaults:
  71. _form: '\Drupal\form_api_example\Form\BuildDemo'
  72. _title: 'Build form demo'
  73. requirements:
  74. _permission: 'access content'
  75. form_api_example.ajax_addmore:
  76. path: '/examples/form-api-example/ajax-addmore'
  77. defaults:
  78. _form: '\Drupal\form_api_example\Form\AjaxAddMore'
  79. _title: 'Add-more button'
  80. requirements:
  81. _permission: 'access content'
  82. form_api_example.multistep_form:
  83. path: '/examples/form-api-example/multistep-form'
  84. defaults:
  85. _form: '\Drupal\form_api_example\Form\MultistepForm'
  86. _title: 'Multistep form'
  87. requirements:
  88. _permission: 'access content'