You are here

media_directories_ui.routing.yml in Media Directories 2.x

modules/media_directories_ui/media_directories_ui.routing.yml

File

modules/media_directories_ui/media_directories_ui.routing.yml
View source
  1. # Directory tree route.
  2. media_directories_ui.directory.tree:
  3. path: '/admin/media_directories/directory/tree'
  4. defaults:
  5. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryTree'
  6. requirements:
  7. _permission: 'access media directories ui browser'
  8. # Directory content route.
  9. media_directories_ui.directory.content:
  10. path: '/admin/media_directories/directory/tree/content'
  11. defaults:
  12. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryContent'
  13. requirements:
  14. _permission: 'access media directories ui browser'
  15. # Add directory route.
  16. media_directories_ui.directory.add:
  17. path: '/admin/media_directories/directory/tree/add'
  18. defaults:
  19. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryAdd'
  20. requirements:
  21. _permission: 'access media directories ui browser'
  22. # Rename directory route.
  23. media_directories_ui.directory.rename:
  24. path: '/admin/media_directories/directory/tree/rename'
  25. defaults:
  26. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryRename'
  27. requirements:
  28. _permission: 'access media directories ui browser'
  29. # Delete directory route.
  30. media_directories_ui.directory.delete:
  31. path: '/admin/media_directories/directory/tree/delete'
  32. defaults:
  33. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryDelete'
  34. requirements:
  35. _permission: 'access media directories ui browser'
  36. # Move directory route.
  37. media_directories_ui.directory.move:
  38. path: '/admin/media_directories/directory/tree/move'
  39. defaults:
  40. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::directoryMove'
  41. requirements:
  42. _permission: 'access media directories ui browser'
  43. # Add media route.
  44. media_directories_ui.media.add:
  45. path: '/admin/media_directories/media/add'
  46. defaults:
  47. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::mediaAdd'
  48. requirements:
  49. _permission: 'access media directories ui browser'
  50. # Edit media route.
  51. media_directories_ui.media.edit:
  52. path: '/admin/media_directories/media/edit'
  53. defaults:
  54. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::mediaEdit'
  55. requirements:
  56. _permission: 'access media directories ui browser'
  57. # Move media route.
  58. media_directories_ui.media.move:
  59. path: '/admin/media_directories/media/move'
  60. defaults:
  61. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::mediaMove'
  62. requirements:
  63. _permission: 'access media directories ui browser'
  64. # Delete media route.
  65. media_directories_ui.media.delete:
  66. path: '/admin/media_directories/media/delete'
  67. defaults:
  68. _controller: '\Drupal\media_directories_ui\Controller\MediaDirectoriesController::mediaDelete'
  69. requirements:
  70. _permission: 'access media directories ui browser'