Version 1
[yaffs-website] / web / core / modules / taxonomy / src / Plugin / migrate / source / d6 / TermNodeRevision.php
diff --git a/web/core/modules/taxonomy/src/Plugin/migrate/source/d6/TermNodeRevision.php b/web/core/modules/taxonomy/src/Plugin/migrate/source/d6/TermNodeRevision.php
new file mode 100644 (file)
index 0000000..91c133b
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace Drupal\taxonomy\Plugin\migrate\source\d6;
+
+/**
+ * Source returning tids from the term_node table for the non-current revision.
+ *
+ * @MigrateSource(
+ *   id = "d6_term_node_revision"
+ * )
+ */
+class TermNodeRevision extends TermNode {
+
+  /**
+   * {@inheritdoc}
+   */
+  const JOIN = 'tn.nid = n.nid AND tn.vid != n.vid';
+
+}