private function SocialProfileTrait::endQuery in Open Social 8.9
Same name and namespace in other branches
- 8.4 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 8.5 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 8.6 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 8.7 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 8.8 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 10.3.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 10.0.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 10.1.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
- 10.2.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
End a Social Profile Mention Query.
Return value
int[] An array of account IDs for accounts whose account names begin with the given string.
1 call to SocialProfileTrait::endQuery()
- SocialProfileTrait::getUserIdsFromName in modules/
social_features/ social_profile/ src/ SocialProfileTrait.php - Get a list of account IDs whose account names begin with the given string.
File
- modules/
social_features/ social_profile/ src/ SocialProfileTrait.php, line 190
Class
- SocialProfileTrait
- Trait SocialProfileTrait.
Namespace
Drupal\social_profileCode
private function endQuery(SelectInterface $query, $count) {
$result = $query
->range(0, $count)
->execute()
->fetchCol();
return !empty($result) ? $result : [];
}