profile.routing.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # edit_form, delete_form routes are generated by DefaultHtmlRouteProvider.
  2. entity.profile.collection:
  3. path: '/admin/people/profiles'
  4. defaults:
  5. _entity_list: 'profile'
  6. _title: 'Profiles'
  7. requirements:
  8. _permission: 'administer profile'
  9. entity.profile_type.collection:
  10. path: '/admin/config/people/profiles'
  11. defaults:
  12. _entity_list: 'profile_type'
  13. _title: 'Profile types'
  14. requirements:
  15. _permission: 'administer profile types'
  16. entity.profile_type.add_form:
  17. path: '/admin/config/people/profiles/add'
  18. defaults:
  19. _entity_form: profile_type.add
  20. _title: 'Add'
  21. requirements:
  22. _permission: 'administer profile types'
  23. entity.profile.type.user_profile_form:
  24. path: '/user/{user}/{profile_type}'
  25. defaults:
  26. _controller: '\Drupal\profile\Controller\ProfileController::userProfileForm'
  27. _title_callback: '\Drupal\profile\Controller\ProfileController::addPageTitle'
  28. requirements:
  29. _profile_access_check: 'add'
  30. entity.profile.type.user_profile_form.add:
  31. path: '/user/{user}/{profile_type}/add'
  32. defaults:
  33. _controller: '\Drupal\profile\Controller\ProfileController::addProfile'
  34. _title_callback: '\Drupal\profile\Controller\ProfileController::addPageTitle'
  35. requirements:
  36. _profile_access_check: 'add'
  37. entity.profile.canonical:
  38. path: '/profile/{profile}'
  39. defaults:
  40. _controller: '\Drupal\profile\Controller\ProfileViewController::view'
  41. _title_callback: '\Drupal\profile\Controller\ProfileViewController::title'
  42. requirements:
  43. _entity_access: 'profile.view'
  44. entity.profile.multiple_delete_confirm:
  45. path: '/admin/content/profile/delete'
  46. defaults:
  47. _form: '\Drupal\profile\Form\DeleteMultiple'
  48. requirements:
  49. _permission: 'administer profile'
  50. entity.profile.set_default:
  51. path: '/profile/{profile}/set-default'
  52. defaults:
  53. _controller: '\Drupal\profile\Controller\ProfileController::setDefault'
  54. options:
  55. parameters:
  56. profile:
  57. type: entity:profile
  58. requirements:
  59. _entity_access: 'profile.update'
  60. _csrf_token: 'TRUE'