Change record status: 
Project: 
Introduced in branch: 
8.x-4.x
Introduced in version: 
8.x-4.2
Description: 

social_group_get_all_group_members() was a helper function in the social_group.module file. As it was in the .module file it made it impossible for proper dependency injection to happen in classes where this function was also called.

In order to make proper dependency injection possible it was moved to the SocialGroupHelperService.

social_group_get_all_group_members() is now deprecated and instead \Drupal::service('social_group.helper_service')->getAllGroupsForUser() should be used.

Impacts: 
Module developers