js_example.routing.yml

Same filename in other branches
  1. 3.x modules/js_example/js_example.routing.yml
  2. 4.0.x modules/js_example/js_example.routing.yml
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 to provide.

File

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.weights:
  9. path: '/examples/js-example/weights'
  10. defaults:
  11. _title: 'JS Example: see weighting in action'
  12. _controller: '\Drupal\js_example\Controller\JsExampleController::getJsWeightImplementation'
  13. requirements:
  14. _permission: 'access content'
  15. js_example.accordion:
  16. path: '/examples/js-example/accordion'
  17. defaults:
  18. _title: 'JS Example: JavaScript Accordion'
  19. _controller: '\Drupal\js_example\Controller\JsExampleController::getJsAccordionImplementation'
  20. requirements:
  21. _permission: 'access content'