You are here

public function MigrateGeofieldFieldHandler::fields in Geofield 7.2

Implementation of MigrateFieldHandler::fields().

Parameters

string $type: The field type.

array $instance: Instance info for the field.

object $migration: The migration context for the parent field. We can look at the mappings and determine which subfields are relevant.

Return value

array List of subfields.

File

./geofield.migrate.inc, line 59
Support for migration into Geofield fields.

Class

MigrateGeofieldFieldHandler
Primary value passed to this field must be the Geometry type string.

Code

public function fields($type, $instance, $migration = NULL) {
  return array(
    'input_format' => t('Subfield: Input Format'),
    'wkt' => t('Subfield: WKT'),
    'geo_type' => t('Subfield: Geo_type'),
    'json' => t('Subfield: GeoJSON'),
    'lat' => t('Subfield: Lat'),
    'lon' => t('Subfield: Lon'),
    'left' => t('Subfield: Left'),
    'top' => t('Subfield: Top'),
    'right' => t('Subfield: Right'),
    'bottom' => t('Subfield: Bottom'),
  );
}