You are here

public function MigrateTaxonomyTermReferenceMachineNameFieldHandler::fields in Taxonomy Machine Name 7

Implementation of MigrateFieldHandler::fields().

Parameters

string $type: The field type.

mixed $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 Fields.

Overrides MigrateTaxonomyTermReferenceFieldHandler::fields

File

./taxonomy_machine_name.migrate.inc, line 260
Taxonomy Machine Name Migrate Module File.

Class

MigrateTaxonomyTermReferenceMachineNameFieldHandler
Class MigrateTaxonomyTermReferenceMachineNameFieldHandler

Code

public function fields($type, $instance, $migration = NULL) {
  $fields = parent::fields($type, $instance, $migration);
  $fields['machine_name'] = t('Option: Set to TRUE to use machine_name instead of name to determinate source ID');
  return $fields;
}