public function ForcePasswordChangeService::getUsersForRole 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::getUsersForRole()
*
Overrides ForcePasswordChangeServiceInterface::getUsersForRole
File
- src/
Service/ ForcePasswordChangeService.php, line 220
Class
Namespace
Drupal\force_password_change\ServiceCode
public function getUsersForRole($rid, $uidOnly = TRUE) {
$uids = $this->mapper
->getUserIdsForRole($rid);
if ($uidOnly) {
return $uids;
}
return $this
->userLoadMultiple($uids);
}