Version 1
[yaffs-website] / web / core / modules / migrate / src / MigrateBuildDependencyInterface.php
diff --git a/web/core/modules/migrate/src/MigrateBuildDependencyInterface.php b/web/core/modules/migrate/src/MigrateBuildDependencyInterface.php
new file mode 100644 (file)
index 0000000..bb02c88
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\migrate;
+
+
+interface MigrateBuildDependencyInterface {
+
+  /**
+   * Builds a dependency tree for the migrations and set their order.
+   *
+   * @param \Drupal\migrate\Plugin\MigrationInterface[] $migrations
+   *   Array of loaded migrations with their declared dependencies.
+   * @param array $dynamic_ids
+   *   Keys are dynamic ids (for example node:*) values are a list of loaded
+   *   migration ids (for example node:page, node:article).
+   *
+   * @return array
+   *   An array of migrations.
+   */
+  public function buildDependencyMigration(array $migrations, array $dynamic_ids);
+
+}