You are here

public function MigrationBase::incompleteDependencies in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/base.inc \MigrationBase::incompleteDependencies()

Returns an array of the migration's dependencies that are incomplete.

File

includes/base.inc, line 726
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

public function incompleteDependencies() {
  $incomplete = array();
  foreach ($this
    ->getDependencies() as $dependency) {
    $migration = MigrationBase::getInstance($dependency);
    if (!$migration
      ->isComplete()) {
      $incomplete[] = $dependency;
    }
  }
  return $incomplete;
}