public function ForcePasswordChangeService::getPendingUsersForRole in Force Password Change 8
Same name and namespace in other branches
- 2.0.x src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::getPendingUsersForRole()
*
Overrides ForcePasswordChangeServiceInterface::getPendingUsersForRole
File
- src/
Service/ ForcePasswordChangeService.php, line 184
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getPendingUsersForRole($rid, $countQuery = FALSE) {
$rid = $rid == 'authenticated' ? FALSE : $rid;
$uids = $this->mapper
->getPendingUserIds($rid);
if ($countQuery) {
return count($uids);
}
return $this
->userLoadMultiple($uids);
}