Drupal 8  8.0.2
CancelUser Class Reference
Inheritance diagram for CancelUser:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user)
 
 executeMultiple (array $entities)
 
 execute ($object=NULL)
 
- Public Member Functions inherited from ActionBase
 executeMultiple (array $entities)
 
- Public Member Functions inherited from ActionInterface
 access ($object, AccountInterface $account=NULL, $return_as_object=FALSE)
 
- Public Member Functions inherited from ExecutableInterface
 execute ()
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 

Protected Attributes

 $tempStoreFactory
 
 $currentUser
 

Detailed Description

Cancels a user account.

( id = "user_cancel_user_action", label = ("Cancel the selected user accounts"), type = "user", confirm_form_route_name = "user.multiple_cancel_confirm" )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
PrivateTempStoreFactory  $temp_store_factory,
AccountInterface  $current_user 
)

Constructs a DeleteNode object.

Parameters
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
\Drupal\user\PrivateTempStoreFactory$temp_store_factoryThe tempstore factory.
AccountInterface$current_userCurrent user.

References Drupal\currentUser().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition 
)
static

{Creates an instance of the plugin.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the plugin.
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
Returns
static Returns an instance of this plugin.
}

Implements ContainerFactoryPluginInterface.

execute (   $object = NULL)

{}

References CancelUser\executeMultiple().

Here is the call graph for this function:

executeMultiple ( array  $entities)

{Executes the plugin for an array of objects.

Parameters
array$objectsAn array of entities.
}

Implements ActionInterface.

References Drupal\currentUser().

Referenced by CancelUser\execute().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: