function social_group_get_all_open_groups in Open Social 8
Same name and namespace in other branches
- 8.9 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.2 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.3 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.4 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.5 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.6 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.7 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 8.8 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 10.3.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 10.0.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 10.1.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
- 10.2.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
Get all open groups.
1 call to social_group_get_all_open_groups()
- ActivityPostVisibilityAccess::query in modules/
custom/ activity_viewer/ src/ Plugin/ views/ filter/ ActivityPostVisibilityAccess.php - Filters out activity items the user is not allowed to see.
File
- modules/
social_features/ social_group/ social_group.module, line 1100 - The Social group module.
Code
function social_group_get_all_open_groups() {
$query = Drupal::service('entity.query')
->get('group')
->condition('type', 'open_group');
return $query
->execute();
}