abstract class UserMergeActionBase in User Merge 2.x
Class UserMergeActionBase.
@package Drupal\usermerge\Plugin\UserMerge\Action
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\usermerge\Plugin\UserMerge\Action\UserMergeActionBase implements UserMergeActionPluginInterface
Expanded class hierarchy of UserMergeActionBase
File
- src/
Plugin/ UserMerge/ Action/ UserMergeActionBase.php, line 15
Namespace
Drupal\usermerge\Plugin\UserMerge\ActionView source
abstract class UserMergeActionBase extends PluginBase implements UserMergeActionPluginInterface {
/**
* The current user.
*
* @var \Drupal\Core\Session\AccountInterface
*/
protected $currentUser;
/**
* UserMergeActionBase constructor.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
* @param string $plugin_id
* The plugin_id for the plugin instance.
* @param mixed $plugin_definition
* The plugin implementation definition.
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current user.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('current_user'));
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this->pluginDefinition['name'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
UserMergeActionBase:: |
protected | property | The current user. | |
UserMergeActionBase:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
UserMergeActionBase:: |
public | function |
Return the name of the action merge plugin. Overrides UserMergeActionPluginInterface:: |
|
UserMergeActionBase:: |
public | function |
UserMergeActionBase constructor. Overrides PluginBase:: |
|
UserMergeActionPluginInterface:: |
public | function | Process merge on selected property. | 2 |