You are here

public function ForcePasswordChangeServiceInterface::getUsersForRole in Force Password Change 8

Same name and namespace in other branches
  1. 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()
ForcePasswordChangeService::getUsersForRole in src/Service/ForcePasswordChangeService.php
*

File

src/Service/ForcePasswordChangeServiceInterface.php, line 146

Class

ForcePasswordChangeServiceInterface

Namespace

Drupal\force_password_change\Service

Code

public function getUsersForRole($rid, $uidOnly = FALSE);