js_example.routing.yml

Same filename in other branches
  1. 3.x modules/js_example/js_example.routing.yml
  2. 8.x-1.x js_example/js_example.routing.yml
modules/js_example/js_example.routing.yml
1 string reference to YAML keys in js_example.routing.yml
_examples_toolbar_routes in ./examples.module
Get a list of toolbar links for testing toolbar routes.

File

modules/js_example/js_example.routing.yml

View source
  1. js_example.info:
  2. path: '/examples/js-example'
  3. defaults:
  4. _title: 'JavaScript Example information'
  5. _controller: '\Drupal\js_example\Controller\JsExampleController::description'
  6. requirements:
  7. _permission: 'access content'
  8. js_example.colors:
  9. path: '/examples/js-example/colors'
  10. defaults:
  11. _title: 'JavaScript Example: Weighting in action'
  12. _controller: '\Drupal\js_example\Controller\JsExampleController::showColors'
  13. requirements:
  14. _permission: 'access content'
  15. js_example.accordion:
  16. path: '/examples/js-example/accordion'
  17. defaults:
  18. _title: 'JavaScript Example: Accordion'
  19. _controller: '\Drupal\js_example\Controller\JsExampleController::showAccordion'
  20. requirements:
  21. _permission: 'access content'