public function UserMerger::applyProperty in User Merge 2.x
Applies a property plugin to a set of accounts being merged.
Parameters
string $plugin_id: The property plugin id to use.
\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.
array $settings: The property plugin settings.
Overrides UserMergerInterface::applyProperty
1 call to UserMerger::applyProperty()
- UserMerger::merge in src/
UserMerger.php - Merges two user accounts.
File
- src/
UserMerger.php, line 64
Class
- UserMerger
- A service for merging two Drupal user accounts.
Namespace
Drupal\usermergeCode
public function applyProperty($plugin_id, UserInterface $retire_user, UserInterface $retain_user, array $settings = []) {
$this->propertyPluginManager
->createInstance($plugin_id)
->process($retire_user, $retain_user, $settings);
}