Version 1
[yaffs-website] / web / core / modules / migrate / src / Plugin / migrate / process / DedupeEntity.php
diff --git a/web/core/modules/migrate/src/Plugin/migrate/process/DedupeEntity.php b/web/core/modules/migrate/src/Plugin/migrate/process/DedupeEntity.php
new file mode 100644 (file)
index 0000000..afa3145
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\migrate\Plugin\migrate\process;
+
+@trigger_error('The ' . __NAMESPACE__ . ' \DedupeEntity is deprecated in
+Drupal 8.4.x and will be removed before Drupal 9.0.0. Instead, use ' . __NAMESPACE__ . ' \MakeUniqueEntityField', E_USER_DEPRECATED);
+
+/**
+ * Ensures value is not duplicated against an entity field.
+ *
+ * If the 'migrated' configuration value is true, an entity will only be
+ * considered a duplicate if it was migrated by the current migration.
+ *
+ * @link https://www.drupal.org/node/2135325 Online handbook documentation for dedupe_entity process plugin @endlink
+ *
+ * @MigrateProcessPlugin(
+ *   id = "dedupe_entity"
+ * )
+ *
+ * @deprecated in Drupal 8.4.x and will be removed in Drupal 9.0.x. Use
+ *   \Drupal\migrate\Plugin\migrate\process\MakeUniqueEntityField instead.
+ */
+class DedupeEntity extends MakeUniqueEntityField { }