You are here

public function MassPasswordChange::executeMultiple in Mass Password Change 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to MassPasswordChange::executeMultiple()
MassPasswordChange::execute in src/Plugin/Action/MassPasswordChange.php
Executes the plugin.

File

src/Plugin/Action/MassPasswordChange.php, line 71

Class

MassPasswordChange
Provides a Change Password action.

Namespace

Drupal\mass_password_change\Plugin\Action

Code

public function executeMultiple(array $accounts) {

  /** @var \Drupal\user\UserInterface[] $accounts */
  $this->tempStoreFactory
    ->get('mass_password_change')
    ->set('password_change', $accounts);
}