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