You are here

public function MigrateDestinationDomain::complete in Domain Access 7.3

1 call to MigrateDestinationDomain::complete()
MigrateDestinationDomain::import in ./domain.migrate.inc
Import a single row.

File

./domain.migrate.inc, line 157
Support for domains in core Drupal objects

Class

MigrateDestinationDomain
Migration class for importing domains into Drupal.

Code

public function complete($domain, stdClass $row) {

  // We do nothing here but allow child classes to act.
  $migration = Migration::currentMigration();
  $domain->migrate = array(
    'machineName' => $migration
      ->getMachineName(),
  );

  // Call any general handlers.
  migrate_handler_invoke_all('domain', 'complete', $domain, $row);

  // Then call any complete handler for this specific Migration.
  if (method_exists($migration, 'complete')) {
    $migration
      ->complete($domain, $row);
  }
}