You are here

public function WinePrepMigration::isComplete in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/wine.inc \WinePrepMigration::isComplete()

Reports whether this migration process is complete. For a Migration, for example, this would be whether all available source rows have been processed. Other MigrationBase classes will need to return TRUE/FALSE appropriately.

Overrides MigrationBase::isComplete

File

migrate_example/wine.inc, line 70
Advanced migration examples. These serve two purposes:

Class

WinePrepMigration
TIP: While usually you'll create true migrations - processes that copy data from some source into Drupal - you can also define processing steps for either the import or rollback stages that take other actions. In this case, we want to disable…

Code

public function isComplete() {

  // If Auto Node Title is disabled, other migrations are free to go
  if (module_exists('auto_nodetitle')) {
    return FALSE;
  }
  else {
    return TRUE;
  }
}