You are here

protected function ForcePasswordChangeService::userLoadMultiple in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeService.php \Drupal\force_password_change\Service\ForcePasswordChangeService::userLoadMultiple()

Helper function to load mulitple user objects. Spun out into a protected function to allow for overriding in Unit Tests.

Parameters

array $uids: The User IDs of the users to load.

Return value

array An array of fully loaded user objects.

3 calls to ForcePasswordChangeService::userLoadMultiple()
ForcePasswordChangeService::getNonPendingUsersForRole in src/Service/ForcePasswordChangeService.php
Retrieve the user accounts of users in the role who do not have a pending forced password change.
ForcePasswordChangeService::getPendingUsersForRole in src/Service/ForcePasswordChangeService.php
Retrieve the users with a pending forced password change in a given role.
ForcePasswordChangeService::getUsersForRole in src/Service/ForcePasswordChangeService.php
Retrieve the users in a given role.
1 method overrides ForcePasswordChangeService::userLoadMultiple()
ForcePasswordChangeServiceTest::userLoadMultiple in tests/modules/force_password_change_service_test/src/Service/ForcePasswordChangeServiceTest.php
Helper function to load mulitple user objects. Spun out into a protected function to allow for overriding in Unit Tests.

File

src/Service/ForcePasswordChangeService.php, line 304

Class

ForcePasswordChangeService

Namespace

Drupal\force_password_change\Service

Code

protected function userLoadMultiple(array $uids) {
  return User::loadMultiple($uids);
}