You are here

public static function CancelUser::create in Drupal 10

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

File

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

Class

CancelUser
Cancels a user account.

Namespace

Drupal\user\Plugin\Action

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('tempstore.private'), $container
    ->get('current_user'));
}