You are here

organigrams.routing.yml in Organigrams 8

Same filename and directory in other branches
  1. 8.2 organigrams.routing.yml

File

organigrams.routing.yml
View source
  1. entity.vocabulary.add_organigram_form:
  2. path: 'admin/structure/taxonomy/add/organigram'
  3. defaults:
  4. _controller: '\Drupal\organigrams\Controller\OrganigramsController::addForm'
  5. _title: 'Add organigram'
  6. requirements:
  7. _entity_create_access: 'taxonomy_term'
  8. _permission: 'create organigrams'
  9. organigrams.import_form:
  10. path: '/admin/structure/taxonomy/import/d7-organigram'
  11. defaults:
  12. _form: '\Drupal\organigrams\Form\OrganigramsImportD7Form'
  13. _title: 'Import Drupal 7 Organigram'
  14. requirements:
  15. _entity_create_access: 'taxonomy_term'
  16. _permission: 'import organigrams'
  17. organigrams.view:
  18. path: '/organigram/{taxonomy_vocabulary}'
  19. defaults:
  20. _controller: '\Drupal\organigrams\Controller\OrganigramsController::viewOrganigram'
  21. _title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::vocabularyTitle'
  22. requirements:
  23. _permission: 'view organigrams'
  24. _custom_access: '\Drupal\organigrams\Controller\OrganigramsController::viewOrganigramAccess'