function _migrate_ui_get_mapping_object in Migrate 7.2
Create a field mapping object of the appropriate class.
Parameters
$migration:
Return value
1 call to _migrate_ui_get_mapping_object()
- migrate_ui_edit_mappings_submit in migrate_ui/
migrate_ui.pages.inc - Submit callback for the edit mappings form. Save any choices made in the UI which override mappings made in code.
File
- migrate_ui/
migrate_ui.pages.inc, line 1530 - Pages for managing migration processes.
Code
function _migrate_ui_get_mapping_object($migration, $destination, $source) {
if (is_a($migration, 'XMLMigration')) {
return new MigrateXMLFieldMapping($destination, $source);
}
else {
return new MigrateFieldMapping($destination, $source);
}
}