You are here

flag_lists.routing.yml in Flag Lists 8

Same filename and directory in other branches
  1. 4.0.x flag_lists.routing.yml

File

flag_lists.routing.yml
View source
  1. flag_lists.settings:
  2. path: '/admin/structure/flag_lists'
  3. defaults:
  4. _entity_list: 'flag_for_list'
  5. _title: 'Templates for flag lists'
  6. requirements:
  7. _permission: 'administer flag lists'
  8. #flag_lists.add_page:
  9. # path: '/admin/structure/flag_lists/add'
  10. # defaults:
  11. # _form: '\Drupal\flag_lists\Form\FlagForListForm'
  12. # _title: 'Add template'
  13. # requirements:
  14. # _permission: 'administer flag lists'
  15. flag_lists.action_link_flag:
  16. path: '/flag/flag/{flag}/{entity_id}/{flag_list}'
  17. defaults:
  18. _controller: '\Drupal\flag_lists\Controller\ActionLinkController::flag'
  19. methods: [POST]
  20. requirements:
  21. _flag_access: 'entity:flag{flag}'
  22. _format: 'html'
  23. _csrf_token: 'TRUE'
  24. flag_lists.action_link_flag_nojs:
  25. path: '/flag/flag/{flag}/{entity_id}/{flag_list}'
  26. defaults:
  27. _controller: '\Drupal\flag_lists\Controller\ActionLinkNoJsController::flag'
  28. methods: [GET]
  29. requirements:
  30. _flag_access: 'entity:flag{flag}'
  31. _format: 'html'
  32. _csrf_token: 'TRUE'
  33. flag_lists.action_link_unflag:
  34. path: '/flag/unflag/{flag}/{entity_id}/{flag_list}'
  35. defaults:
  36. _controller: '\Drupal\flag_lists\Controller\ActionLinkController::unflag'
  37. methods: [POST]
  38. requirements:
  39. _unflag_access: 'entity:flag{flag}'
  40. _format: 'html'
  41. _csrf_token: 'TRUE'
  42. flag_lists.action_link_unflag_nojs:
  43. path: '/flag/unflag/{flag}/{entity_id}/{flag_list}'
  44. defaults:
  45. _controller: '\Drupal\flag_lists\Controller\ActionLinkNoJsController::unflag'
  46. methods: [GET]
  47. requirements:
  48. _unflag_access: 'entity:flag{flag}'
  49. _format: 'html'
  50. _csrf_token: 'TRUE'
  51. flagging_collection.add:
  52. path: '/flagging_collection/add'
  53. defaults:
  54. _entity_form: entity.flagging_collection.add_page
  55. _title: 'Add Flagging collection'
  56. requirements:
  57. _permission: 'add flag lists'
  58. entity.flag_list_item.collection:
  59. path: '/admin/structure/flag_lists/flag_list_item/flag_list_item'
  60. defaults:
  61. _entity_list: 'flag_list_item'
  62. _title: 'Flag List Item Handling'
  63. requirements:
  64. _custom_access: '\Drupal\flag_lists\Access\FlagListItemAccess::customAccess'