You are here

public function ForcePasswordChangeServiceInterface::getPendingUsersForRole 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::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. * @param boolean $countQuery * A boolean indicating whether to return the number of users, or the loaded user objects. * * @return 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
*

File

src/Service/ForcePasswordChangeServiceInterface.php, line 113

Class

ForcePasswordChangeServiceInterface

Namespace

Drupal\force_password_change\Service

Code

public function getPendingUsersForRole($rid, $countQuery = FALSE);