* type_map = {
* "userreference" = "entity_reference",
* },
+ * source_module = "userreference",
+ * destination_module = "core",
* )
*/
class UserReference extends FieldPluginBase {
/**
* {@inheritdoc}
*/
- public function getFieldFormatterMap() {
- return [];
- }
-
- /**
- * {@inheritdoc}
- */
- public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
+ public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
$process = [
- 'plugin' => 'iterator',
+ 'plugin' => 'sub_process',
'source' => $field_name,
'process' => [
'target_id' => [