You are here

public function UserMergeActionBase::__construct in User Merge 2.x

UserMergeActionBase constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides PluginBase::__construct

File

src/Plugin/UserMerge/Action/UserMergeActionBase.php, line 36

Class

UserMergeActionBase
Class UserMergeActionBase.

Namespace

Drupal\usermerge\Plugin\UserMerge\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $current_user;
}