public function MigrateDestinationVotingApiVote::prepare in Voting API 7.2
Same name and namespace in other branches
- 7.3 votingapi.migrate.inc \MigrateDestinationVotingApiVote::prepare()
1 call to MigrateDestinationVotingApiVote::prepare()
- MigrateDestinationVotingApiVote::import in ./
votingapi.migrate.inc - Derived classes must implement import(), to construct one new object (pre-pppulated using field mappings in the Migration). It is expected to call prepare and complete handlers, passing them $row (the raw data from the source).
File
- ./
votingapi.migrate.inc, line 156 - Migration support for voting api.
Class
- MigrateDestinationVotingApiVote
- @file Migration support for voting api.
Code
public function prepare($vote, stdClass $source_row) {
$migration = Migration::currentMigration();
if (method_exists($migration, 'prepare')) {
$vote->migrate = array(
'machineName' => $migration
->getMachineName(),
);
$migration
->prepare($vote, $source_row);
}
}