You are here

public function MigrateDestinationTermMachineName::runDeferredImports in Taxonomy Machine Name 7

Attempt to import any terms for which import was previously deferred.

This will run import() again for each term and row, which will again attempt to match up each term with its parent term.

Any term for which a parent term is still not found will be returned to the set of deferred imports. If the import is a multi-level hierarchy, this method can be invoked multiple times until every level of the hierarchy has been successfully imported.

File

./taxonomy_machine_name.migrate.inc, line 228
Taxonomy Machine Name Migrate Module File.

Class

MigrateDestinationTermMachineName
Class MigrateDestinationTermMachineName

Code

public function runDeferredImports() {
  $current = $this->deferred;

  // Clear the list of deferred imports, to be rebuilt during the import.
  $this->deferred = array();
  foreach ($current as $import) {

    // This will automatically re-queue any imports that
    // still need to be deferred.
    $this
      ->import($import->term, $import->row);
  }
}