You are here

public function MigrateSourceReference::fields in Relation 8

Same name and namespace in other branches
  1. 8.2 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::fields()
  2. 7 relation_migrate/relation_migrate.source.inc \MigrateSourceReference::fields()

Returns a list of fields available to be mapped from the source, keyed by field name.

File

relation_migrate/relation_migrate.source.inc, line 59
Source plugin for *reference fields.

Class

MigrateSourceReference
Migration source for *ference field. This source is primary used in relation_migrate to convert *reference entries into relation entities.

Code

public function fields() {
  return array(
    'source_type' => t('Source entity type'),
    'source_id' => t('Source entity ID'),
    'destination_type' => t('Destination entity type'),
    'destination_id' => t('Destination entity ID'),
    'field_name' => t('Field name'),
  );
}