You are here

paramconverter_test.routing.yml in Drupal 8

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

File

core/modules/system/tests/modules/paramconverter_test/paramconverter_test.routing.yml
View source
  1. paramconverter_test.user_node_foo:
  2. path: '/paramconverter_test/test_user_node_foo/{user}/{node}/{foo}'
  3. defaults:
  4. _controller: '\Drupal\paramconverter_test\TestControllers::testUserNodeFoo'
  5. requirements:
  6. _access: 'TRUE'
  7. paramconverter_test.node_user_user:
  8. path: '/paramconverter_test/test_node_user_user/{node}/{foo}/{user}'
  9. defaults:
  10. _controller: '\Drupal\paramconverter_test\TestControllers::testUserNodeFoo'
  11. requirements:
  12. _access: 'TRUE'
  13. options:
  14. parameters:
  15. foo:
  16. type: 'entity:user'
  17. paramconverter_test.node_node_foo:
  18. path: '/paramconverter_test/test_node_node_foo/{user}/{node}/{foo}'
  19. defaults:
  20. _controller: '\Drupal\paramconverter_test\TestControllers::testUserNodeFoo'
  21. requirements:
  22. _access: 'TRUE'
  23. options:
  24. parameters:
  25. user:
  26. type: 'entity:node'
  27. paramconverter_test.node_set_parent:
  28. path: '/paramconverter_test/node/{node}/set/parent/{parent}'
  29. requirements:
  30. _access: 'TRUE'
  31. defaults:
  32. _controller: '\Drupal\paramconverter_test\TestControllers::testNodeSetParent'
  33. options:
  34. parameters:
  35. parent:
  36. type: 'entity:node'
  37. paramconverter_test.node_check_language:
  38. path: '/paramconverter_test/node/{node}/test_language'
  39. requirements:
  40. _access: 'TRUE'
  41. defaults:
  42. _controller: '\Drupal\paramconverter_test\TestControllers::testEntityLanguage'