function CancelUser::executeMultiple

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

Overrides ActionBase::executeMultiple

1 call to CancelUser::executeMultiple()
CancelUser::execute in core/modules/user/src/Plugin/Action/CancelUser.php
Executes the plugin.

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.