You are here

function social_group_get_all_open_groups in Open Social 8.9

Same name and namespace in other branches
  1. 8 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  2. 8.2 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  3. 8.3 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  4. 8.4 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  5. 8.5 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  6. 8.6 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  7. 8.7 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  8. 8.8 modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  9. 10.3.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  10. 10.0.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  11. 10.1.x modules/social_features/social_group/social_group.module \social_group_get_all_open_groups()
  12. 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 1549
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();
}