You are here

background_image.routing.yml in Background Image 2.0.x

Same filename and directory in other branches
  1. 8 background_image.routing.yml
  2. 2.x background_image.routing.yml

File

background_image.routing.yml
View source
  1. route_callbacks:
  2. - '\Drupal\background_image\Routing\BackgroundImageRoutes::routes'
  3. background_image.admin:
  4. path: '/admin/config/media/background_image'
  5. defaults:
  6. _entity_list: 'background_image'
  7. _title: 'Background Images'
  8. requirements:
  9. _permission: 'administer background image'
  10. background_image.settings:
  11. path: '/admin/config/media/background_image/settings'
  12. defaults:
  13. _form: '\Drupal\background_image\Form\BackgroundImageSettingsForm'
  14. _title: 'Background Image Settings'
  15. requirements:
  16. _permission: 'administer background image'
  17. entity.background_image.add_form:
  18. path: '/admin/config/media/background_image/add'
  19. defaults:
  20. _entity_form: background_image.add
  21. _title: 'Add Background Image'
  22. requirements:
  23. _entity_create_access: 'background_image'
  24. options:
  25. _node_operation_route: TRUE
  26. entity.background_image.canonical:
  27. path: '/admin/config/media/background_image/{background_image}/edit'
  28. defaults:
  29. _entity_form: background_image.edit
  30. _title: 'Edit Background Image'
  31. requirements:
  32. _entity_access: 'background_image.edit'
  33. options:
  34. _node_operation_route: TRUE
  35. entity.background_image.edit_form:
  36. path: '/admin/config/media/background_image/{background_image}/edit'
  37. defaults:
  38. _entity_form: background_image.edit
  39. _title: 'Edit Background Image'
  40. requirements:
  41. _entity_access: 'background_image.edit'
  42. options:
  43. _node_operation_route: TRUE
  44. entity.background_image.delete_form:
  45. path: '/admin/config/media/background_image/{background_image}/delete'
  46. defaults:
  47. _entity_form: background_image.delete
  48. _title: 'Delete Background Image'
  49. requirements:
  50. _entity_access: 'background_image.delete'
  51. options:
  52. _node_operation_route: TRUE
  53. entity.background_image.collection:
  54. path: '/admin/config/media/background_image'
  55. defaults:
  56. _entity_list: 'background_image'
  57. _title: 'Background Images'
  58. requirements:
  59. _permission: 'administer background image'