Drupal investigation

profile.routing.yml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # edit_form, delete_form routes are generated by DefaultHtmlRouteProvider.
  2. entity.profile.collection:
  3. path: '/admin/config/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/types'
  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/types/add'
  18. defaults:
  19. _entity_form: profile_type.add
  20. _title: 'Add'
  21. requirements:
  22. _permission: 'administer profile types'
  23. entity.profile.add_form:
  24. path: '/user/{user}/profile/{profile_type}'
  25. defaults:
  26. _controller: '\Drupal\profile\Controller\ProfileController::addProfile'
  27. _title: 'Add new profile'
  28. operation: 'add'
  29. requirements:
  30. _profile_access_check: 'profile:{profile_type}'
  31. entity.profile.canonical:
  32. path: '/profile/{profile}'
  33. defaults:
  34. _controller: '\Drupal\profile\Controller\ProfileViewController::view'
  35. _title_callback: '\Drupal\profile\Controller\ProfileViewController::title'
  36. requirements:
  37. _entity_access: 'profile.view'
  38. entity.profile.multiple_delete_confirm:
  39. path: '/admin/content/profile/delete'
  40. defaults:
  41. _form: '\Drupal\profile\Form\DeleteMultiple'
  42. requirements:
  43. _permission: 'administer profile'
  44. entity.profile.set_default:
  45. path: '/profile/{profile}/set-default'
  46. defaults:
  47. _controller: '\Drupal\profile\Controller\ProfileController::setDefault'
  48. options:
  49. parameters:
  50. profile:
  51. type: entity:profile
  52. requirements:
  53. _entity_access: 'profile.edit'
  54. _csrf_token: 'TRUE'