public function ForcePasswordChangeServiceInterface::getUsersForRole in Force Password Change 8
Same name and namespace in other branches
- 2.0.x 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. * @param boolean $uidOnly * A boolean indicating whether the the User IDs should be returned, or the fullly loaded * user objects. * * @return 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()
File
- src/
Service/ ForcePasswordChangeServiceInterface.php, line 146
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getUsersForRole($rid, $uidOnly = FALSE);