You are here

profile.routing.yml in Profile 8

File

profile.routing.yml
View source
  1. entity.profile.set_default:
  2. path: '/profile/{profile}/set-default'
  3. defaults:
  4. _controller: '\Drupal\profile\Controller\ProfileController::setDefault'
  5. options:
  6. parameters:
  7. profile:
  8. type: entity:profile
  9. requirements:
  10. _entity_access: 'profile.update'
  11. _csrf_token: 'TRUE'
  12. profile.user_page.single:
  13. path: '/user/{user}/{profile_type}'
  14. defaults:
  15. _controller: '\Drupal\profile\Controller\UserController::singlePage'
  16. _title_callback: '\Drupal\profile\Controller\UserController::title'
  17. requirements:
  18. _profile_type_multiple: 'FALSE'
  19. _custom_access: '\Drupal\profile\Controller\UserController::checkAccess'
  20. profile.user_page.multiple:
  21. path: '/user/{user}/{profile_type}/list'
  22. defaults:
  23. _controller: '\Drupal\profile\Controller\UserController::multiplePage'
  24. _title_callback: '\Drupal\profile\Controller\UserController::title'
  25. requirements:
  26. _profile_type_multiple: 'TRUE'
  27. _custom_access: '\Drupal\profile\Controller\UserController::checkAccess'
  28. profile.user_page.add_form:
  29. path: '/user/{user}/{profile_type}/add'
  30. defaults:
  31. _controller: '\Drupal\profile\Controller\UserController::addForm'
  32. _title: 'Add profile'
  33. requirements:
  34. _profile_type_multiple: 'TRUE'
  35. _custom_access: '\Drupal\profile\Controller\UserController::checkCreateAccess'