You are here

flipbook.routing.yml in 3D Flipbook 8

File

flipbook.routing.yml
View source
  1. # This file brings everything together. Very nifty!
  2. # Route name can be used in several places; e.g. links, redirects, and local
  3. # actions.
  4. entity.flipbook.canonical:
  5. path: '/flipbook/{flipbook}'
  6. defaults:
  7. # Calls the view controller, defined in the annotation of the contact entity
  8. _entity_view: 'flipbook'
  9. _title: 'Flipbook Content'
  10. requirements:
  11. # Calls the access controller of the entity, $operation 'view'
  12. _entity_access: 'flipbook.view'
  13. entity.flipbook.collection:
  14. path: '/admin/structure/flipbook/list'
  15. defaults:
  16. # Calls the list controller, defined in the annotation of the contact entity.
  17. _entity_list: 'flipbook'
  18. _title: 'Flipbook List'
  19. requirements:
  20. # Checks for permission directly.
  21. _permission: 'administer flipbook entity'
  22. flipbook.add:
  23. path: '/admin/structure/flipbook/add'
  24. defaults:
  25. # Calls the form.add controller, defined in the contact entity.
  26. _entity_form: flipbook.add
  27. _title: 'Add Flipbook'
  28. requirements:
  29. _entity_create_access: 'flipbook'
  30. entity.flipbook.edit_form:
  31. path: '/admin/structure/flipbook/{flipbook}/edit'
  32. defaults:
  33. # Calls the form.edit controller, defined in the contact entity.
  34. _entity_form: flipbook.edit
  35. _title: 'Edit Flipbook'
  36. requirements:
  37. _entity_access: 'flipbook.edit'
  38. entity.flipbook.delete_form:
  39. path: '/admin/structure/contact/{flipbook}/delete'
  40. defaults:
  41. # Calls the form.delete controller, defined in the contact entity.
  42. _entity_form: flipbook.delete
  43. _title: 'Delete Flipbook'
  44. requirements:
  45. _entity_access: 'flipbook.delete'
  46. flipbook.settings:
  47. path: 'admin/structure/flipbook_settings'
  48. defaults:
  49. _form: '\Drupal\flipbook\Form\FlipbookSettingsForm'
  50. _title: 'Flipbook Settings'
  51. requirements:
  52. _permission: 'administer flipbook entity'
  53. flipbook.chooseform:
  54. path: '/admin/config/choosepdfstyle'
  55. defaults:
  56. _form: 'Drupal\flipbook\Form\ChoosePdfStyleForm'
  57. _title: 'FlipBook Pdf Style Settings'
  58. requirements:
  59. _permission: 'access content'