test_htmx.routing.yml

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/test_htmx/test_htmx.routing.yml
core/modules/system/tests/modules/test_htmx/test_htmx.routing.yml
6 string references to YAML keys in test_htmx.routing.yml
HtmxRendererTest::testHtmxRouteOption in core/tests/Drupal/KernelTests/Core/Htmx/HtmxRendererTest.php
Test triggering the renderer with the _htmx_route option.
HtmxRendererTest::testWrapperFormat in core/tests/Drupal/KernelTests/Core/Htmx/HtmxRendererTest.php
Test triggering the renderer with _wrapper_format.
HtmxRequestTest::setUp in core/tests/Drupal/KernelTests/Core/Htmx/HtmxRequestTest.php
HtmxRequestTest::testHxRequest in core/tests/Drupal/KernelTests/Core/Htmx/HtmxRequestTest.php
Test all 5 request verb methods.
HtmxTestAttachmentsController::generateHtmxButton in core/modules/system/tests/modules/test_htmx/src/Controller/HtmxTestAttachmentsController.php
Static helper to for reusable render array.

... See full list

File

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

View source
  1. test_htmx.attachments.page:
  2. path: '/htmx-test-attachments/page'
  3. defaults:
  4. _title: 'Page'
  5. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::page'
  6. requirements:
  7. _permission: 'access content'
  8. test_htmx.attachments.before:
  9. path: '/htmx-test-attachments/before'
  10. defaults:
  11. _title: 'Page'
  12. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::before'
  13. requirements:
  14. _permission: 'access content'
  15. test_htmx.attachments.after:
  16. path: '/htmx-test-attachments/after'
  17. defaults:
  18. _title: 'Page'
  19. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::after'
  20. requirements:
  21. _permission: 'access content'
  22. test_htmx.attachments.wrapper:
  23. path: '/htmx-test-attachments/wrapper'
  24. defaults:
  25. _title: 'Minimal Response'
  26. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::withWrapperFormat'
  27. requirements:
  28. _permission: 'access content'
  29. test_htmx.attachments.replace:
  30. path: '/htmx-test-attachments/replace'
  31. defaults:
  32. _title: 'Ajax Content'
  33. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::replace'
  34. requirements:
  35. _permission: 'access content'
  36. test_htmx.attachments.route_option:
  37. path: '/htmx-test-attachments/route-option'
  38. defaults:
  39. _title: 'Using _htmx_route option'
  40. _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::replace'
  41. requirements:
  42. _permission: 'access content'
  43. options:
  44. _htmx_route: TRUE
  45. test_htmx.attachments.ajax:
  46. path: '/htmx-test-attachments/ajax'
  47. defaults:
  48. _title: 'Ajax'
  49. _form: '\Drupal\test_htmx\Form\HtmxTestAjaxForm'
  50. requirements:
  51. _permission: 'access content'
  52. test_htmx.form_builder_test:
  53. path: '/htmx-test-attachments/form-builder-test/{type}/{selected}'
  54. defaults:
  55. _title: 'Test dynamic HTMX form'
  56. _form: '\Drupal\test_htmx\Form\HtmxTestForm'
  57. type: NULL
  58. selected: NULL
  59. requirements:
  60. _permission: 'access content'

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