You are here

social_group.routing.yml in Open Social 8.9

modules/social_features/social_group/social_group.routing.yml

File

modules/social_features/social_group/social_group.routing.yml
View source
  1. social_group.page_redirect:
  2. path: '/group/{group}'
  3. defaults:
  4. _controller: '\Drupal\social_group\Controller\SocialGroupController::otherGroupPage'
  5. _title: 'Group'
  6. requirements:
  7. _user_is_logged_in: 'TRUE'
  8. social_group.settings:
  9. path: '/admin/config/opensocial/social-group'
  10. defaults:
  11. _form: 'Drupal\social_group\Form\SocialGroupSettings'
  12. _title: 'Group settings'
  13. requirements:
  14. _permission: 'set social group settings'
  15. social_group.stream:
  16. path: '/group/{group}/stream'
  17. defaults:
  18. _content: '\Drupal\social_group\Controller\SocialGroupController::groupStream'
  19. _title_callback: '\Drupal\social_group\Controller\SocialGroupController::groupStreamTitle'
  20. _entity_view: 'group.stream'
  21. requirements:
  22. _group_permission: 'view group stream page'
  23. social_group.my_groups:
  24. path: '/my-groups'
  25. defaults:
  26. _controller: '\Drupal\social_group\Controller\SocialGroupController:redirectMyGroups'
  27. requirements:
  28. _user_is_logged_in: 'TRUE'