You are here

organigrams.routing.yml in Organigrams 8.2

Same filename and directory in other branches
  1. 8 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.import_items_form:
  18. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/import'
  19. defaults:
  20. _form: '\Drupal\organigrams\Form\OrganigramsImportItemsForm'
  21. _title: 'Import organigram items'
  22. requirements:
  23. _entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}'
  24. _custom_access: '\Drupal\organigrams\Controller\OrganigramsController::isOrganigram'
  25. options:
  26. parameters:
  27. taxonomy_vocabulary:
  28. type: entity:taxonomy_vocabulary
  29. organigrams.export_items_form:
  30. path: '/admin/structure/taxonomy/manage/{taxonomy_vocabulary}/export'
  31. defaults:
  32. _controller: '\Drupal\organigrams\Controller\OrganigramsController::exportOrganigramItems'
  33. _title: 'Export organigram items'
  34. requirements:
  35. _entity_create_access: 'taxonomy_term:{taxonomy_vocabulary}'
  36. _custom_access: '\Drupal\organigrams\Controller\OrganigramsController::isOrganigram'
  37. options:
  38. parameters:
  39. taxonomy_vocabulary:
  40. type: entity:taxonomy_vocabulary
  41. organigrams.view:
  42. path: '/organigram/{taxonomy_vocabulary}'
  43. defaults:
  44. _controller: '\Drupal\organigrams\Controller\OrganigramsController::viewOrganigram'
  45. _title_callback: '\Drupal\taxonomy\Controller\TaxonomyController::vocabularyTitle'
  46. requirements:
  47. _permission: 'view organigrams'
  48. _custom_access: '\Drupal\organigrams\Controller\OrganigramsController::isOrganigram'