public function ForcePasswordChangeServiceInterface::getPendingUsersForRole in Force Password Change 2.0.x
Same name and namespace in other branches
- 8 src/Service/ForcePasswordChangeServiceInterface.php \Drupal\force_password_change\Service\ForcePasswordChangeServiceInterface::getPendingUsersForRole()
Retrieve the users with a pending forced password change in a given role.
Parameters
string $rid: The Role ID of the role in which users with a pending forced password change should be retrieved.
bool $countQuery: A boolean indicating whether to return the number of users, or the loaded user objects.
Return value
int|array If $countQuery is TRUE, the number of users in the role with a pending forced password change is returned. If $countQuery is FALSE, the loaded user objects of all users in the role who have a pending forced password change will be returned.
1 method overrides ForcePasswordChangeServiceInterface::getPendingUsersForRole()
- ForcePasswordChangeService::getPendingUsersForRole in src/
Service/ ForcePasswordChangeService.php - Retrieve the users with a pending forced password change in a given role.
File
- src/
Service/ ForcePasswordChangeServiceInterface.php, line 119
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getPendingUsersForRole($rid, $countQuery = FALSE);