function CancelUser::execute

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

Overrides ExecutableInterface::execute

File

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

Class

CancelUser
Cancels a user account.

Namespace

Drupal\user\Plugin\Action

Code

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

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