function _social_group_get_overview_route in Open Social 8.9
Same name and namespace in other branches
- 8.2 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.3 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.4 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.5 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.6 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.7 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 8.8 modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 10.3.x modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 10.0.x modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 10.1.x modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
- 10.2.x modules/social_features/social_group/social_group.module \_social_group_get_overview_route()
Get group overview route.
Return value
array An array with route name and parameters and group.
1 call to _social_group_get_overview_route()
- _social_group_action_form_submit in modules/
social_features/ social_group/ social_group.module - Form submit for group join / leave form.
File
- modules/
social_features/ social_group/ social_group.module, line 111 - The Social group module.
Code
function _social_group_get_overview_route(GroupInterface $group) {
$route = [
'name' => 'view.groups.page_user_groups',
'parameters' => [
'user' => \Drupal::currentUser()
->id(),
],
];
\Drupal::moduleHandler()
->alter('social_group_overview_route', $route, $group);
return $route;
}