You are here

public function CancelUser::executeMultiple in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::executeMultiple()
  2. 9 core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::executeMultiple()

File

core/modules/user/src/Plugin/Action/CancelUser.php, line 74

Class

CancelUser
Cancels a user account.

Namespace

Drupal\user\Plugin\Action

Code

public function executeMultiple(array $entities) {
  $this->tempStoreFactory
    ->get('user_user_operations_cancel')
    ->set($this->currentUser
    ->id(), $entities);
}