interface UserMergerInterface in User Merge 2.x
A service for merging two user accounts together.
Hierarchy
- interface \Drupal\usermerge\UserMergerInterface
Expanded class hierarchy of UserMergerInterface
All classes that implement UserMergerInterface
File
- src/
UserMergerInterface.php, line 10
Namespace
Drupal\usermergeView source
interface UserMergerInterface {
/**
* Merges two user accounts.
*
* @param \Drupal\user\UserInterface $retire_user
* The user being retired after the merge is complete.
* @param \Drupal\user\UserInterface $retain_user
* The user being retained after the merge is complete.
* @param string $action_id
* The id of the action plugin to be applied to the account being retired.
*
* @return \Drupal\user\UserInterface
* The final merged account.
*/
public function merge(UserInterface $retire_user, UserInterface $retain_user, $action_id = 'action_block');
/**
* Applies the action to take on the user account being retired.
*
* @param string $plugin_id
* The action plugin id to use.
* @param \Drupal\user\UserInterface $retire_user
* The user being retired after the merge is complete.
* @param \Drupal\user\UserInterface $retain_user
* The user being retained after the merge is complete.
*/
public function applyAction($plugin_id, UserInterface $retire_user, UserInterface $retain_user);
/**
* Applies a property plugin to a set of accounts being merged.
*
* @param string $plugin_id
* The property plugin id to use.
* @param \Drupal\user\UserInterface $retire_user
* The user being retired after the merge is complete.
* @param \Drupal\user\UserInterface $retain_user
* The user being retained after the merge is complete.
* @param array $settings
* The property plugin settings.
*/
public function applyProperty($plugin_id, UserInterface $retire_user, UserInterface $retain_user, array $settings = []);
/**
* Gets a list of property plugin ids.
*
* @return string[]
* An array of property plugin ids.
*/
public function getPropertyPlugins();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserMergerInterface:: |
public | function | Applies the action to take on the user account being retired. | 1 |
UserMergerInterface:: |
public | function | Applies a property plugin to a set of accounts being merged. | 1 |
UserMergerInterface:: |
public | function | Gets a list of property plugin ids. | 1 |
UserMergerInterface:: |
public | function | Merges two user accounts. | 1 |