You are here

profile.routing.yml in Profile 2 8

File

profile.routing.yml
View source
  1. profile.overview_profiles:
  2. path: '/admin/config/people/profiles'
  3. defaults:
  4. _title: 'Profiles'
  5. requirements:
  6. _permission: 'administer profiles'
  7. profile.overview_types:
  8. path: '/admin/config/people/profiles/types'
  9. defaults:
  10. _entity_list: 'profile_type'
  11. _title: 'Profile types'
  12. requirements:
  13. _permission: 'administer profile types'
  14. entity.profile_type.add_form:
  15. path: '/admin/config/people/profiles/types/add'
  16. defaults:
  17. _entity_form: 'profile_type.add'
  18. _title: 'Add'
  19. requirements:
  20. _permission: 'administer profile types'
  21. entity.profile_type.edit_form:
  22. path: '/admin/config/people/profiles/types/manage/{profile_type}'
  23. defaults:
  24. _entity_form: 'profile_type.edit'
  25. _title: 'Edit'
  26. requirements:
  27. _permission: 'administer profile types'
  28. entity.profile_type.delete_form:
  29. path: '/admin/config/people/profiles/types/manage/{profile_type}/delete'
  30. defaults:
  31. _entity_form: 'profile_type.delete'
  32. _title: 'Delete'
  33. requirements:
  34. _permission: 'administer profile types'
  35. entity.profile.add_form:
  36. path: '/user/{user}/edit/profile/{profile_type}'
  37. defaults:
  38. _controller: '\Drupal\profile\Controller\ProfileController::addProfile'
  39. _title: 'Add new profile'
  40. operation: 'add'
  41. options:
  42. parameters:
  43. profile_type:
  44. use_current_language: TRUE
  45. requirements:
  46. _profile_access_check: 'profile:{profile_type}'
  47. entity.profile.edit_form:
  48. path: '/user/{user}/edit/profile/{profile_type}/{profile}'
  49. defaults:
  50. _entity_form: 'profile.edit'
  51. _title: 'Edit a profile'
  52. requirements:
  53. _entity_access: 'profile.update'
  54. entity.profile.delete_form:
  55. path: '/profile/{profile}/delete'
  56. defaults:
  57. _entity_form: 'profile.delete'
  58. _title: 'Delete a profile'
  59. requirements:
  60. _entity_access: 'profile.delete'
  61. entity.profile.canonical:
  62. path: '/profile/{profile}'
  63. defaults:
  64. _content: '\Drupal\profile\Controller\ProfileViewController::view'
  65. _title_callback: '\Drupal\profile\Controller\ProfileViewController::title'
  66. requirements:
  67. _entity_access: 'profile.view'
  68. profile.multiple_delete_confirm:
  69. path: '/admin/content/profile/delete'
  70. defaults:
  71. _form: '\Drupal\profile\Form\DeleteMultiple'
  72. requirements:
  73. _permission: 'administer profiles'