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