You are here

public function CancelUser::executeMultiple in Zircon Profile 8

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

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

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 79
Contains \Drupal\user\Plugin\Action\CancelUser.

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