public function CancelUser::executeMultiple in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::executeMultiple()
- 10 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 74
Class
- CancelUser
- Cancels a user account.
Namespace
Drupal\user\Plugin\ActionCode
public function executeMultiple(array $entities) {
$this->tempStoreFactory
->get('user_user_operations_cancel')
->set($this->currentUser
->id(), $entities);
}