You are here

public function MigratePhysicalDimensionsFieldHandler::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

1 call to MigratePhysicalDimensionsFieldHandler::fields()
MigratePhysicalDimensionsFieldHandler::prepare in includes/migrate/dimensions.inc

File

includes/migrate/dimensions.inc, line 41

Class

MigratePhysicalDimensionsFieldHandler
Class MigratePhysicalDimensionsFieldHandler

Code

public function fields($type, $instance, $migration = NULL) {
  return array(
    'length' => t('Subfield: !field', array(
      '!field' => t('Length'),
    )),
    'width' => t('Subfield: !field', array(
      '!field' => t('Width'),
    )),
    'height' => t('Subfield: !field', array(
      '!field' => t('Height'),
    )),
    'unit' => t('Subfield: The unit of measure for the dimensions'),
  );
}