You are here

social_album.routing.yml in Open Social 10.1.x

modules/social_features/social_album/social_album.routing.yml

File

modules/social_features/social_album/social_album.routing.yml
View source
  1. social_album.add:
  2. path: '/group/{group}/albums/add'
  3. defaults:
  4. _controller: '\Drupal\social_album\Controller\SocialAlbumController::add'
  5. _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
  6. node_type: album
  7. requirements:
  8. _custom_access: '\Drupal\social_album\Controller\SocialAlbumController::checkGroupAlbumAccess'
  9. _node_add_access: 'node:{node_type}'
  10. group: \d+
  11. options:
  12. _node_operation_route: TRUE
  13. parameters:
  14. group:
  15. type: 'entity:group'
  16. node_type:
  17. type: 'entity:node_type'
  18. with_config_overrides: TRUE
  19. social_album.post:
  20. path: '/node/{node}/post'
  21. defaults:
  22. _entity_form: 'post.album'
  23. _title_callback: '\Drupal\social_album\Controller\SocialAlbumController::title'
  24. type: photo
  25. requirements:
  26. _custom_access: '\Drupal\social_album\Controller\SocialAlbumController::checkAddImageAccess'
  27. _permission: 'add post entities'
  28. node: \d+
  29. options:
  30. parameters:
  31. node:
  32. type: 'entity:node'
  33. social_album.image.view:
  34. path: '/node/{node}/image/{post}/{fid}'
  35. defaults:
  36. _controller: '\Drupal\social_album\Controller\SocialAlbumController::viewImage'
  37. _title: 'View image'
  38. requirements:
  39. _custom_access: '\Drupal\social_album\Controller\SocialAlbumController::checkViewImageAccess'
  40. node: \d+
  41. post: \d+
  42. fid: \d+
  43. options:
  44. parameters:
  45. node:
  46. type: 'entity:node'
  47. post:
  48. type: 'entity:post'
  49. social_album.image.delete:
  50. path: '/node/{node}/image/{post}/{fid}/delete'
  51. defaults:
  52. _controller: '\Drupal\social_album\Controller\SocialAlbumController::deleteImage'
  53. _title: 'Delete image'
  54. requirements:
  55. _custom_access: '\Drupal\social_album\Controller\SocialAlbumController::checkDeleteImageAccess'
  56. node: \d+
  57. post: \d+
  58. fid: \d+
  59. options:
  60. parameters:
  61. node:
  62. type: 'entity:node'
  63. post:
  64. type: 'entity:post'
  65. social_album.settings:
  66. path: '/admin/config/opensocial/album'
  67. defaults:
  68. _form: '\Drupal\social_album\Form\SocialAlbumSettingsForm'
  69. _title: 'Album settings'
  70. requirements:
  71. _permission: 'administer social_album settings'
  72. options:
  73. _admin_route: TRUE