You are here

public function MigrateTaxonomyTermReferenceFieldHandler::fields in Migrate 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

File

plugins/destinations/fields.inc, line 490
Support for processing entity fields

Class

MigrateTaxonomyTermReferenceFieldHandler

Code

public function fields($type, $instance, $migration = NULL) {
  return array(
    'source_type' => t('Option: <a href="@doc">Set to \'tid\' when the value is a source ID</a>', array(
      '@doc' => 'http://drupal.org/node/1224042#source_type',
    )),
    'create_term' => t('Option: <a href="@doc">Set to TRUE to create referenced terms when necessary</a>', array(
      '@doc' => 'http://drupal.org/node/1224042#create_term',
    )),
    'ignore_case' => t('Option: <a href="@doc">Set to TRUE to ignore case differences between source data and existing term names</a>', array(
      '@doc' => 'http://drupal.org/node/1224042#ignore_case',
    )),
    'not_empty' => t('Option: Set to TRUE to ignore empty terms to get created in case of multiple term names per row.'),
  );
}