function CancelUser::execute
Same name and namespace in other branches
- 11.x core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::execute()
- 10 core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::execute()
- 9 core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::execute()
- 8.9.x core/modules/user/src/Plugin/Action/CancelUser.php \Drupal\user\Plugin\Action\CancelUser::execute()
Executes the plugin.
phpcs:ignore Drupal.Commenting.FunctionComment.ParamNameNoMatch
@todo Uncomment the new $object method parameter before drupal:12.0.0.
Parameters
object|null $object: (optional) An object to execute the plugin on/with.
Overrides ExecutableInterface::execute
File
-
core/
modules/ user/ src/ Plugin/ Action/ CancelUser.php, line 68
Class
- CancelUser
- Cancels a user account.
Namespace
Drupal\user\Plugin\ActionCode
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.