You are here

photos.routing.yml in Album Photos 8.5

Same filename and directory in other branches
  1. 8.4 photos.routing.yml
  2. 6.0.x photos.routing.yml

File

photos.routing.yml
View source
  1. entity.photos_image.collection:
  2. path: '/admin/content/photos'
  3. defaults:
  4. _entity_list: 'photos_image'
  5. _title: 'Photos'
  6. requirements:
  7. _permission: 'administer nodes'
  8. photos.admin:
  9. path: '/admin/structure/photos'
  10. defaults:
  11. _form: '\Drupal\photos\Form\PhotosAdminStructureForm'
  12. _title: 'Photos'
  13. requirements:
  14. _permission: 'administer nodes'
  15. photos.admin.config:
  16. path: '/admin/config/media/photos'
  17. defaults:
  18. _form: '\Drupal\photos\Form\PhotosAdminSettingsForm'
  19. _title: 'Photos'
  20. requirements:
  21. _permission: 'administer nodes'
  22. photos.image.add:
  23. path: '/photos/image/add'
  24. defaults:
  25. _entity_form: 'photos_image.add'
  26. requirements:
  27. _permission: 'create photo'
  28. options:
  29. _photos_image_operation_route: TRUE
  30. photos.import.directory:
  31. path: '/photos/import'
  32. defaults:
  33. _form: '\Drupal\photos\Form\PhotosDirectoryImportForm'
  34. _title: 'Import Photos'
  35. requirements:
  36. _permission: 'administer nodes'
  37. options:
  38. _admin_route: TRUE
  39. photos.node.management:
  40. path: '/node/{node}/photos'
  41. defaults:
  42. _form: '\Drupal\photos\Form\PhotosUploadForm'
  43. _title: 'Add Photos'
  44. requirements:
  45. _custom_access: '\Drupal\photos\Form\PhotosUploadForm::access'
  46. node: \d+
  47. options:
  48. parameters:
  49. node:
  50. type: entity:node
  51. photos.node.rearrange:
  52. path: '/node/{node}/photos-rearrange'
  53. defaults:
  54. _controller: '\Drupal\photos\Controller\PhotosRearrangeController::contentOverview'
  55. _title_callback: '\Drupal\photos\Controller\PhotosRearrangeController::getTitle'
  56. requirements:
  57. _custom_access: '\Drupal\photos\Controller\PhotosRearrangeController::access'
  58. node: \d+
  59. options:
  60. parameters:
  61. node:
  62. type: entity:node
  63. photos.album.rearrange:
  64. path: '/user/{user}/photos/album-rearrange'
  65. defaults:
  66. _controller: '\Drupal\photos\Controller\PhotosRearrangeController::albumRearrange'
  67. _title: 'Rearrange My Albums'
  68. requirements:
  69. _custom_access: '\Drupal\photos\Controller\PhotosRearrangeController::access'
  70. user: \d+
  71. options:
  72. parameters:
  73. user:
  74. type: entity:user
  75. photos.ajax.rearrange:
  76. path: '/photos/ajax/rearrange'
  77. defaults:
  78. _controller: '\Drupal\photos\Controller\PhotosRearrangeController::ajaxRearrange'
  79. requirements:
  80. _permission: 'create photo'
  81. photos.album.update.cover:
  82. path: '/photos/{node}/cover/{photos_image}'
  83. defaults:
  84. _controller: '\Drupal\photos\Controller\PhotosEditController::setAlbumCover'
  85. requirements:
  86. _custom_access: '\Drupal\photos\Controller\PhotosEditController::access'
  87. node: \d+
  88. photos_image: \d+
  89. options:
  90. parameters:
  91. node:
  92. type: entity:node
  93. photos_image:
  94. type: entity:photos_image
  95. photos.statistics.update:
  96. path: '/photos/statistics-update'
  97. defaults:
  98. _controller: 'Drupal\photos\Controller\PhotosStatisticsUpdateController::updateCount'
  99. _title: 'Photos Statistics Update'
  100. requirements:
  101. _permission: 'access content'