You are here

function social_group_get_all_groups in Open Social 8.9

Same name and namespace in other branches
  1. 8.5 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  2. 8.6 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  3. 8.7 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  4. 8.8 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  5. 10.3.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  6. 10.0.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  7. 10.1.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
  8. 10.2.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()

Get all open groups.

1 call to social_group_get_all_groups()
AddMembersToGroup::buildConfigurationForm in modules/social_features/social_group/src/Plugin/Action/AddMembersToGroup.php
Form constructor.

File

modules/social_features/social_group/social_group.module, line 1559
The Social group module.

Code

function social_group_get_all_groups() {
  $query = Drupal::service('entity.query')
    ->get('group')
    ->sort('type');
  return $query
    ->execute();
}