materio_flag.routing.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. materio_flag.user_flagging_collections:
  2. path: 'materio_flag/user_flagging_collections'
  3. defaults:
  4. _controller: '\Drupal\materio_flag\Controller\MaterioFlagController::getUsersFlaggingCollections'
  5. _title: 'User Flagging Colleciton'
  6. requirements:
  7. _permission: 'access content'
  8. materio_flag.create_user_flagging_collection:
  9. path: 'materio_flag/create_user_flagging_collection'
  10. defaults:
  11. _controller: '\Drupal\materio_flag\Controller\MaterioFlagController::createUserFlaggingCollection'
  12. _title: 'Create User Flagging Collection'
  13. requirements:
  14. _permission: 'add flag lists'
  15. materio_flag.delete_user_flagging_collection:
  16. path: 'materio_flag/delete_user_flagging_collection'
  17. defaults:
  18. _controller: '\Drupal\materio_flag\Controller\MaterioFlagController::deleteUserFlaggingCollection'
  19. _title: 'Delete User Flagging Collection'
  20. requirements:
  21. _permission: 'edit own flag lists'
  22. materio_flag.flag:
  23. path: 'materio_flag/flag'
  24. defaults:
  25. _controller: '\Drupal\materio_flag\Controller\MaterioFlagActionsController::flaglistentity'
  26. _title: 'Add entity to Flagging Collection'
  27. requirements:
  28. _permission: 'edit own flag lists'
  29. materio_flag.unFlag:
  30. path: 'materio_flag/unflag'
  31. defaults:
  32. _controller: '\Drupal\materio_flag\Controller\MaterioFlagActionsController::unFlaglistentity'
  33. _title: 'Remove entity from Flagging Collection'
  34. requirements:
  35. _permission: 'edit own flag lists'
  36. # materio_flag.unflag
  37. # path: 'materio_flag/unflag'
  38. # defaults:
  39. # _controller: '\Drupal\materio_flag\Controller\MaterioFlagController::unFlag'
  40. # _title: 'Remove entity from Flagging Collection'
  41. # requirements:
  42. # _permission: 'edit own flag lists'