You are here

public function MigrateMediaFieldHandler::fields in Migrate Extras 7.2

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

Overrides MigrateFileFieldHandler::fields

File

./media.inc, line 159

Class

MigrateMediaFieldHandler

Code

public function fields($type, $instance, $migration = NULL) {
  $fields = parent::fields($type, $instance, $migration);
  unset($fields['description']);
  unset($fields['display']);
  $fields += array(
    'title' => t('Subfield: String to be used as the title value'),
    'data' => t('Subfield: Additional data about the field'),
  );
  return $fields;
}