You are here

public function MigrateDestinationVotingApiVote::prepareRollback in Voting API 7.2

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

Give handlers a shot at cleaning up before a question has been rolled back.

Parameters

$entity_id: ID of the entity about to be deleted..

File

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

Class

MigrateDestinationVotingApiVote
@file Migration support for voting api.

Code

public function prepareRollback($entity_id) {

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