taxonomy.routing.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. entity.taxonomy_vocabulary.collection:
  2. path: '/admin/structure/taxonomy'
  3. defaults:
  4. _entity_list: 'taxonomy_vocabulary'
  5. _title: 'Taxonomy'
  6. requirements:
  7. _permission: 'administer taxonomy'
  8. entity.taxonomy_term.add_form:
  9. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/add'
  10. defaults:
  11. _controller: '\Drupal\taxonomy\Controller\TaxonomyController::addForm'
  12. _title: 'Add term'
  13. requirements:
  14. _entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}'
  15. entity.taxonomy_term.edit_form:
  16. path: '/taxonomy/term/{taxonomy_term}/edit'
  17. defaults:
  18. _entity_form: 'taxonomy_term.default'
  19. _title: 'Edit term'
  20. options:
  21. _admin_route: TRUE
  22. requirements:
  23. _entity_access: 'taxonomy_term.update'
  24. taxonomy_term: \d+
  25. entity.taxonomy_term.delete_form:
  26. path: '/taxonomy/term/{taxonomy_term}/delete'
  27. defaults:
  28. _entity_form: 'taxonomy_term.delete'
  29. _title: 'Delete term'
  30. options:
  31. _admin_route: TRUE
  32. requirements:
  33. _entity_access: 'taxonomy_term.delete'
  34. taxonomy_term: \d+
  35. entity.taxonomy_vocabulary.add_form:
  36. path: '/admin/structure/taxonomy/add'
  37. defaults:
  38. _entity_form: 'taxonomy_vocabulary'
  39. _title: 'Add vocabulary'
  40. requirements:
  41. _entity_create_access: 'taxonomy_vocabulary'
  42. entity.taxonomy_vocabulary.edit_form:
  43. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}'
  44. defaults:
  45. _entity_form: 'taxonomy_vocabulary.default'
  46. _title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::vocabularyTitle'
  47. requirements:
  48. _entity_access: 'taxonomy_vocabulary.update'
  49. entity.taxonomy_vocabulary.delete_form:
  50. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/delete'
  51. defaults:
  52. _entity_form: 'taxonomy_vocabulary.delete'
  53. _title: 'Delete vocabulary'
  54. requirements:
  55. _entity_access: 'taxonomy_vocabulary.delete'
  56. entity.taxonomy_vocabulary.reset_form:
  57. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/reset'
  58. defaults:
  59. _entity_form: 'taxonomy_vocabulary.reset'
  60. _title: 'Reset'
  61. requirements:
  62. _permission: 'administer taxonomy'
  63. entity.taxonomy_vocabulary.overview_form:
  64. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/overview'
  65. defaults:
  66. _form: 'Drupal\taxonomy\Form\OverviewTerms'
  67. _title_callback: 'Drupal\taxonomy\Controller\TaxonomyController::vocabularyTitle'
  68. requirements:
  69. _entity_access: 'taxonomy_vocabulary.view'
  70. entity.taxonomy_term.canonical:
  71. path: '/taxonomy/term/{taxonomy_term}'
  72. defaults:
  73. _entity_view: 'taxonomy_term.full'
  74. _title: 'Taxonomy term'
  75. _title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::termTitle'
  76. requirements:
  77. _entity_access: 'taxonomy_term.view'
  78. taxonomy_term: \d+