Skip to content
Snippets Groups Projects

3417828: Use batch process for initializing the users.

1 unresolved thread

Merge request reports

Merged results pipeline #224444 skipped

Merged results pipeline skipped for 8e87fe24

Approval is optional

Merged by Kris BooghmansKris Booghmans 7 months ago (Jul 15, 2024 7:05am UTC)

Merge details

  • Changes merged into with 12162490.
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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');
  • kalash jain added 1 commit

    added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading