You are here

public function UserMerger::getPropertyPlugins in User Merge 2.x

Gets a list of property plugin ids.

Return value

string[] An array of property plugin ids.

Overrides UserMergerInterface::getPropertyPlugins

1 call to UserMerger::getPropertyPlugins()
UserMerger::merge in src/UserMerger.php
Merges two user accounts.

File

src/UserMerger.php, line 72

Class

UserMerger
A service for merging two Drupal user accounts.

Namespace

Drupal\usermerge

Code

public function getPropertyPlugins() {
  $plugin_ids = [];
  foreach ($this->propertyPluginManager
    ->getDefinitions() as $plugin_id => $definition) {
    $plugin_ids[] = $plugin_id;
  }
  return $plugin_ids;
}