3417828: Use batch process for initializing the users.
1 unresolved thread
Merge request reports
Activity
Filter activity
added 1 commit
9 7 10 $users = \Drupal\user\Entity\User::loadMultiple(); 11 foreach ($users as $user) { 12 if ($user->id() > 0) { 13 $password_policy->store($user); 14 } 15 } 8 use Drupal\Core\Database\Database; 9 use Drupal\user\Entity\User; 16 10 11 /** 12 * Implements hook_install(). 13 */ 14 function simple_password_policy_install() { 15 // Start the batch process to initialize users with password policy settings. 16 $password_policy_installer = \Drupal::service('simple_password_policy.installer'); @rajdip_755 i have solved the issue
added 1 commit
Please register or sign in to reply