You are here

PropertyUser.php in User Merge 2.x

File

src/Plugin/UserMerge/Property/PropertyUser.php
View source
<?php

namespace Drupal\usermerge\Plugin\UserMerge\Property;

use Drupal\user\UserInterface;

/**
 * Class PropertyUser.
 *
 * @UserMergeProperty(
 *   id = "property_user",
 *   name = @Translation("Account data"),
 *   description = @Translation("Choose which user information (default properties and custom fields, if available) should be kept, discarded, or merged."),
 *   review = "\Drupal\usermerge\Form\ReviewUserForm",
 * )
 * @package Drupal\usermerge\Plugin\UserMerge\Property
 */
class PropertyUser extends UserMergePropertyBase {

  /**
   * {@inheritDoc}
   */
  public function process(UserInterface $retired, UserInterface $retained, array $settings = []) : void {

    // @TODO: allow to pick fields which will be merged.
  }

}

Classes

Namesort descending Description
PropertyUser Class PropertyUser.