public function MigrateDestinationCustomBlock::complete in Migrate 7.2
Implementation of MigrateDestination::complete().
1 call to MigrateDestinationCustomBlock::complete()
- MigrateDestinationCustomBlock::import in plugins/
destinations/ block_custom.inc - Import a single row.
File
- plugins/
destinations/ block_custom.inc, line 153 - Support for custom block destinations.
Class
- MigrateDestinationCustomBlock
- Destination class implementing migration into {block_custom}.
Code
public function complete($block, stdClass $row) {
// We do nothing here but allow child classes to act.
$migration = Migration::currentMigration();
$block->migrate = array(
'machineName' => $migration
->getMachineName(),
);
// Call any general handlers.
migrate_handler_invoke_all('block_custom', 'complete', $block, $row);
// Then call any complete handler for this specific Migration.
if (method_exists($migration, 'complete')) {
$migration
->complete($block, $row);
}
}