Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / node / src / Plugin / migrate / D6NodeTranslation.php
diff --git a/web/core/modules/node/src/Plugin/migrate/D6NodeTranslation.php b/web/core/modules/node/src/Plugin/migrate/D6NodeTranslation.php
new file mode 100644 (file)
index 0000000..3abf772
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\node\Plugin\migrate;
+
+use Drupal\migrate\Plugin\Migration;
+use Drupal\migrate_drupal\Plugin\MigrationWithFollowUpInterface;
+
+/**
+ * Migration plugin for the Drupal 6 node translations.
+ */
+class D6NodeTranslation extends Migration implements MigrationWithFollowUpInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function generateFollowUpMigrations() {
+    $this->migrationPluginManager->clearCachedDefinitions();
+    return $this->migrationPluginManager->createInstances('d6_entity_reference_translation');
+  }
+
+}