You are here

private function SocialProfileTrait::endQuery in Open Social 8.9

Same name and namespace in other branches
  1. 8.4 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  2. 8.5 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  3. 8.6 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  4. 8.7 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  5. 8.8 modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  6. 10.3.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  7. 10.0.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  8. 10.1.x modules/social_features/social_profile/src/SocialProfileTrait.php \Drupal\social_profile\SocialProfileTrait::endQuery()
  9. 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_profile

Code

private function endQuery(SelectInterface $query, $count) {
  $result = $query
    ->range(0, $count)
    ->execute()
    ->fetchCol();
  return !empty($result) ? $result : [];
}