You are here

taxonomy.routing.yml in Drupal 9

core/modules/taxonomy/taxonomy.routing.yml

File

core/modules/taxonomy/taxonomy.routing.yml
View source
  1. entity.taxonomy_term.add_form:
  2. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/add'
  3. defaults:
  4. _controller: '\Drupal\taxonomy\Controller\TaxonomyController::addForm'
  5. _title: 'Add term'
  6. requirements:
  7. _entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}'
  8. entity.taxonomy_term.edit_form:
  9. path: '/taxonomy/term/{taxonomy_term}/edit'
  10. defaults:
  11. _entity_form: 'taxonomy_term.default'
  12. _title: 'Edit term'
  13. options:
  14. _admin_route: TRUE
  15. requirements:
  16. _entity_access: 'taxonomy_term.update'
  17. taxonomy_term: \d+
  18. entity.taxonomy_term.delete_form:
  19. path: '/taxonomy/term/{taxonomy_term}/delete'
  20. defaults:
  21. _entity_form: 'taxonomy_term.delete'
  22. _title: 'Delete term'
  23. options:
  24. _admin_route: TRUE
  25. requirements:
  26. _entity_access: 'taxonomy_term.delete'
  27. taxonomy_term: \d+
  28. entity.taxonomy_term.canonical:
  29. path: '/taxonomy/term/{taxonomy_term}'
  30. defaults:
  31. _entity_view: 'taxonomy_term.full'
  32. _title: 'Taxonomy term'
  33. _title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::termTitle'
  34. requirements:
  35. _entity_access: 'taxonomy_term.view'
  36. taxonomy_term: \d+