test_htmx.routing.yml
Same filename and directory in other branches
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.
File
-
core/
modules/ system/ tests/ modules/ test_htmx/ test_htmx.routing.yml
View source
- test_htmx.attachments.page:
- path: '/htmx-test-attachments/page'
- defaults:
- _title: 'Page'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::page'
- requirements:
- _permission: 'access content'
-
- test_htmx.attachments.before:
- path: '/htmx-test-attachments/before'
- defaults:
- _title: 'Page'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::before'
- requirements:
- _permission: 'access content'
-
- test_htmx.attachments.after:
- path: '/htmx-test-attachments/after'
- defaults:
- _title: 'Page'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::after'
- requirements:
- _permission: 'access content'
-
- test_htmx.attachments.wrapper:
- path: '/htmx-test-attachments/wrapper'
- defaults:
- _title: 'Minimal Response'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::withWrapperFormat'
- requirements:
- _permission: 'access content'
-
- test_htmx.attachments.replace:
- path: '/htmx-test-attachments/replace'
- defaults:
- _title: 'Ajax Content'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::replace'
- requirements:
- _permission: 'access content'
-
- test_htmx.attachments.route_option:
- path: '/htmx-test-attachments/route-option'
- defaults:
- _title: 'Using _htmx_route option'
- _controller: '\Drupal\test_htmx\Controller\HtmxTestAttachmentsController::replace'
- requirements:
- _permission: 'access content'
- options:
- _htmx_route: TRUE
-
- test_htmx.attachments.ajax:
- path: '/htmx-test-attachments/ajax'
- defaults:
- _title: 'Ajax'
- _form: '\Drupal\test_htmx\Form\HtmxTestAjaxForm'
- requirements:
- _permission: 'access content'
-
- test_htmx.form_builder_test:
- path: '/htmx-test-attachments/form-builder-test/{type}/{selected}'
- defaults:
- _title: 'Test dynamic HTMX form'
- _form: '\Drupal\test_htmx\Form\HtmxTestForm'
- type: NULL
- selected: NULL
- requirements:
- _permission: 'access content'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.