public function UserMergerInterface::merge in User Merge 2.x
Merges two user accounts.
Parameters
\Drupal\user\UserInterface $retire_user: The user being retired after the merge is complete.
\Drupal\user\UserInterface $retain_user: The user being retained after the merge is complete.
string $action_id: The id of the action plugin to be applied to the account being retired.
Return value
\Drupal\user\UserInterface The final merged account.
1 method overrides UserMergerInterface::merge()
- UserMerger::merge in src/
UserMerger.php - Merges two user accounts.
File
- src/
UserMergerInterface.php, line 25
Class
- UserMergerInterface
- A service for merging two user accounts together.
Namespace
Drupal\usermergeCode
public function merge(UserInterface $retire_user, UserInterface $retain_user, $action_id = 'action_block');