You are here

modal_page.routing.yml in Modal 8.2

File

modal_page.routing.yml
View source
  1. modal_page.settings:
  2. path: '/admin/config/user-interface/modal-page/settings'
  3. defaults:
  4. _title: 'Modal Page Settings'
  5. _form: 'Drupal\modal_page\Form\ModalPageSettingsForm'
  6. requirements:
  7. _permission: 'administer modal entity'
  8. entity.modal_page_modal.canonical:
  9. path: '/admin/structure/modal/{modal_page_modal}'
  10. defaults:
  11. _entity_view: 'modal_page_modal'
  12. _title: 'Modal'
  13. requirements:
  14. _entity_access: 'modal_page_modal.view'
  15. _permission: 'view modal entity'
  16. modal_page.default:
  17. path: '/admin/structure/modal'
  18. defaults:
  19. _entity_list: 'modal_page_modal'
  20. _title: 'Modal'
  21. requirements:
  22. _permission: 'view modal entity'
  23. modal_page.help:
  24. path: '/admin/modal/help'
  25. defaults:
  26. _controller: '\Drupal\modal_page\Controller\ModalHelpController::index'
  27. _title: 'Help'
  28. requirements:
  29. _permission: 'view modal entity'
  30. modal_page.add_modal:
  31. path: '/admin/structure/modal/add'
  32. defaults:
  33. _entity_form: modal_page_modal.add
  34. _title: 'Add Modal'
  35. requirements:
  36. _entity_create_access: 'modal_page_modal'
  37. _permission: 'add modal entity'
  38. entity.modal_page_modal.edit_form:
  39. path: '/admin/structure/modal/{modal_page_modal}/edit'
  40. defaults:
  41. _entity_form: modal_page_modal.edit
  42. _title: 'Edit Modal'
  43. requirements:
  44. _entity_access: 'modal_page_modal.edit'
  45. _permission: 'edit modal entity'
  46. entity.modal_page_modal.delete_form:
  47. path: '/admin/structure/modal/{modal_page_modal}/delete'
  48. defaults:
  49. _entity_form: modal_page_modal.delete
  50. _title: 'Delete Modal'
  51. requirements:
  52. _entity_access: 'modal_page_modal.delete'
  53. _permission: 'delete modal entity'
  54. entity.modal_page_modal.published_form:
  55. path: '/admin/structure/modal/{modal_page_modal}/published'
  56. defaults:
  57. _entity_form: modal_page_modal.published
  58. _title: 'Published Modal'
  59. requirements:
  60. _entity_access: 'modal_page_modal.published'
  61. _permission: 'published modal entity'