function social_group_get_all_groups in Open Social 8.9
Same name and namespace in other branches
- 8.5 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 8.6 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 8.7 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 8.8 modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 10.3.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 10.0.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 10.1.x modules/social_features/social_group/social_group.module \social_group_get_all_groups()
- 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();
}