You are here

public function MigrateDestinationVotingapi::complete in Migrate Extras 6.2

Same name and namespace in other branches
  1. 7.2 votingapi.inc \MigrateDestinationVotingapi::complete()

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 MigrateDestinationVotingapi::complete()
MigrateDestinationVotingapi::import in ./votingapi.inc
Import a single vote.

File

./votingapi.inc, line 158
VotingAPI module integration

Class

MigrateDestinationVotingapi
Destination class for the votingapi_vote table.

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);
  }
}