You are here

bibcite_export.routing.yml in Bibliography & Citation 2.0.x

Same filename and directory in other branches
  1. 8 modules/bibcite_export/bibcite_export.routing.yml
modules/bibcite_export/bibcite_export.routing.yml

File

modules/bibcite_export/bibcite_export.routing.yml
View source
  1. bibcite_export.export:
  2. path: '/bibcite/export/{bibcite_format}/{entity_type}/{entity}'
  3. defaults:
  4. _controller: '\Drupal\bibcite_export\Controller\ExportController::export'
  5. _title: 'BibCite Export'
  6. requirements:
  7. _permission: 'access bibcite export'
  8. _entity_access: 'entity.view'
  9. options:
  10. parameters:
  11. bibcite_format:
  12. type: bibcite_format
  13. entity:
  14. type: entity:{entity_type}
  15. entity.bibcite_reference.export_multiple_form:
  16. path: '/admin/content/bibcite/reference/export-action'
  17. defaults:
  18. _form: '\Drupal\bibcite_export\Form\ExportMultipleForm'
  19. _title: 'Export'
  20. requirements:
  21. _permission: 'access bibcite export'
  22. bibcite_export.export_all:
  23. path: '/admin/content/bibcite/reference/export'
  24. defaults:
  25. _form: '\Drupal\bibcite_export\Form\ExportAllForm'
  26. _title: 'Export all references'
  27. requirements:
  28. _permission: 'administer bibcite+access bibcite export'
  29. bibcite_export.download:
  30. path: '/admin/content/bibcite/reference/export/download/{file}'
  31. defaults:
  32. _controller: '\Drupal\bibcite_export\Controller\ExportDownload::download'
  33. _title: 'Download export file'
  34. requirements:
  35. _custom_access: '\Drupal\bibcite_export\Access\DownloadFileAccess::access'
  36. options:
  37. parameters:
  38. file:
  39. type: entity:file