This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/core/modules/taxonomy/taxonomy.routing.yml
2018-11-23 12:29:20 +00:00

40 lines
1.1 KiB
YAML

entity.taxonomy_term.add_form:
path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/add'
defaults:
_controller: '\Drupal\taxonomy\Controller\TaxonomyController::addForm'
_title: 'Add term'
requirements:
_entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}'
entity.taxonomy_term.edit_form:
path: '/taxonomy/term/{taxonomy_term}/edit'
defaults:
_entity_form: 'taxonomy_term.default'
_title: 'Edit term'
options:
_admin_route: TRUE
requirements:
_entity_access: 'taxonomy_term.update'
taxonomy_term: \d+
entity.taxonomy_term.delete_form:
path: '/taxonomy/term/{taxonomy_term}/delete'
defaults:
_entity_form: 'taxonomy_term.delete'
_title: 'Delete term'
options:
_admin_route: TRUE
requirements:
_entity_access: 'taxonomy_term.delete'
taxonomy_term: \d+
entity.taxonomy_term.canonical:
path: '/taxonomy/term/{taxonomy_term}'
defaults:
_entity_view: 'taxonomy_term.full'
_title: 'Taxonomy term'
_title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::termTitle'
requirements:
_entity_access: 'taxonomy_term.view'
taxonomy_term: \d+