public function MigrateDestinationCustomBlock::completeRollback in Migrate 7.2
Give handlers a shot at cleaning up after a block has been rolled back.
Parameters
$bid: ID of the custom block which has been deleted.
1 call to MigrateDestinationCustomBlock::completeRollback()
- MigrateDestinationCustomBlock::bulkRollback in plugins/
destinations/ block_custom.inc - Delete a batch of custom blocks at once.
File
- plugins/
destinations/ block_custom.inc, line 204 - Support for custom block destinations.
Class
- MigrateDestinationCustomBlock
- Destination class implementing migration into {block_custom}.
Code
public function completeRollback($bid) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
// Call any general handlers.
migrate_handler_invoke_all('block_custom', 'completeRollback', $bid);
// Then call any complete handler for this specific Migration.
if (method_exists($migration, 'completeRollback')) {
$migration
->completeRollback($bid);
}
}