You are here

tft.routing.yml in Taxonomy File Tree 8

Same filename and directory in other branches
  1. 3.x tft.routing.yml

File

tft.routing.yml
View source
  1. tft.download_file:
  2. path: 'tft/download/file/{media}'
  3. defaults:
  4. _controller: '\Drupal\tft\Controller\TFTController::downloadFile'
  5. _title: 'Files'
  6. requirements:
  7. _entity_access: 'media.view'
  8. options:
  9. parameters:
  10. media:
  11. type: entity:media
  12. tft.directory:
  13. path: 'tft/{taxonomy_term}'
  14. defaults:
  15. _controller: '\Drupal\tft\Controller\TFTController::listDirectory'
  16. _title: 'Taxonomy File Tree'
  17. taxonomy_term: null
  18. requirements:
  19. _entity_access: 'taxonomy_term.view'
  20. options:
  21. parameters:
  22. taxonomy_term:
  23. type: entity:taxonomy_term
  24. tft.group:
  25. path: 'group/{group}/tft'
  26. defaults:
  27. _controller: '\Drupal\tft\Controller\TFTController::listGroup'
  28. _title: 'Files'
  29. requirements:
  30. _entity_access: 'group.take'
  31. options:
  32. parameters:
  33. group:
  34. type: entity:group
  35. tft.add_term:
  36. path: 'tft/term/add'
  37. defaults:
  38. _form: '\Drupal\tft\Form\AddFolderForm'
  39. _title: 'Add a folder'
  40. requirements:
  41. _entity_create_access: taxonomy_term
  42. tft.edit_term:
  43. path: 'tft/term/edit/{taxonomy_term}'
  44. defaults:
  45. _form: '\Drupal\tft\Form\EditFolderForm'
  46. _title: 'Edit a folder'
  47. requirements:
  48. _entity_access: 'taxonomy_term.update'
  49. options:
  50. parameters:
  51. taxonomy_term:
  52. type: entity:taxonomy_term
  53. tft.delete_term:
  54. path: 'tft/term/delete/{taxonomy_term}'
  55. defaults:
  56. _form: '\Drupal\tft\Form\DeleteFolderForm'
  57. _title: 'Delete a folder'
  58. requirements:
  59. _entity_access: 'taxonomy_term.delete'
  60. options:
  61. parameters:
  62. taxonomy_term:
  63. type: entity:taxonomy_term
  64. tft.reorder_terms:
  65. path: 'tft/terms/reorder/{taxonomy_term}'
  66. defaults:
  67. _form: '\Drupal\tft\Form\ReorderFolderForm'
  68. _title: 'Reorder folders'
  69. requirements:
  70. _entity_access: 'taxonomy_term.reorder'
  71. options:
  72. parameters:
  73. taxonomy_term:
  74. type: entity:taxonomy_term
  75. tft.ajax_get_folder:
  76. path: 'tft/ajax/get-folder'
  77. defaults:
  78. _controller: '\Drupal\tft\Controller\TFTController::ajaxGetFolder'
  79. requirements:
  80. _custom_access: '\Drupal\tft\Controller\TFTController::accessAjaxGetFolder'