You are here

public function MigrateDestinationUserpoints::complete in User Points 7

Give handlers a shot at modifying the object (or taking additional action) after saving it.

Parameters

$object: Entity object to build. This is the complete object after saving.

$source_row: Raw source data object - passed through to complete handlers.

1 call to MigrateDestinationUserpoints::complete()
MigrateDestinationUserpoints::import in ./userpoints.migrate.inc
Import a single userpoints transaction.

File

./userpoints.migrate.inc, line 170
Migration class for userpoint transactions.

Class

MigrateDestinationUserpoints
Destination class for migrating userpoints.

Code

public function complete(stdClass $entity, stdClass $source_row) {
  $migration = Migration::currentMigration();

  // Call any complete handler for this specific Migration.
  if (method_exists($migration, 'complete')) {
    $migration
      ->complete($entity, $source_row);
  }
}