public function MigratePhysicalWeightFieldHandler::fields in Physical Fields 7
Implementation of MigrateFieldHandler::fields().
Parameters
$type: The field type.
$instance: Instance info for the field.
Migration $migration: The migration context for the parent field. We can look at the mappings and determine which subfields are relevant.
Return value
array
File
- includes/
migrate/ weight.inc, line 36
Class
- MigratePhysicalWeightFieldHandler
- Class MigratePhysicalWeightFieldHandler
Code
public function fields($type, $instance, $migration = NULL) {
return array(
'unit' => t('Subfield: The unit of measure for the weight'),
);
}