You are here

public function CancelUser::execute in Drupal 9

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

Executes the plugin.

Overrides ExecutableInterface::execute

File

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

Class

CancelUser
Cancels a user account.

Namespace

Drupal\user\Plugin\Action

Code

public function execute($object = NULL) {
  $this
    ->executeMultiple([
    $object,
  ]);
}