public function ForcePasswordChangeServiceInterface::getUsersForRole 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::getUsersForRole()
Retrieve the users in a given role.
Parameters
string $rid: The Role ID of the role for which users should be retrieved.
bool $uidOnly: A boolean indicating whether the the User IDs should be returned, or the fullly loaded user objects.
Return value
array If $uidOnly is set to TRUE, an array of User IDs for users in the given role. If $uidOnly is set to FALSE, an array of fully loaded user objects for users in the given role.
1 method overrides ForcePasswordChangeServiceInterface::getUsersForRole()
- ForcePasswordChangeService::getUsersForRole in src/
Service/ ForcePasswordChangeService.php - Retrieve the users in a given role.
File
- src/
Service/ ForcePasswordChangeServiceInterface.php, line 153
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getUsersForRole($rid, $uidOnly = FALSE);