You are here

public function MigrateSourceReference::fields in Relation 7

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

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

Overrides MigrateSource::fields

File

relation_migrate/relation_migrate.source.inc, line 57
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'),
  );
}