You are here

public function MigrateDestinationVotingApiVote::completeRollback in Voting API 7.2

Same name and namespace in other branches
  1. 7.3 votingapi.migrate.inc \MigrateDestinationVotingApiVote::completeRollback()

Give handlers a shot at cleaning up after an entity has been rolled back.

Parameters

$entity_id: ID of the entity which has been deleted.

File

./votingapi.migrate.inc, line 200
Migration support for voting api.

Class

MigrateDestinationVotingApiVote
@file Migration support for voting api.

Code

public function completeRollback($entity_id) {

  // Call any complete handler for this specific Migration.
  $migration = Migration::currentMigration();
  if (method_exists($migration, 'completeRollback')) {
    $migration
      ->completeRollback($entity_id);
  }
}