public function RelationMigrateReference::prepare in Relation 7
Same name and namespace in other branches
- 8.2 relation_migrate/relation_migrate.migration.inc \RelationMigrateReference::prepare()
- 8 relation_migrate/relation_migrate.migration.inc \RelationMigrateReference::prepare()
File
- relation_migrate/
relation_migrate.migration.inc, line 57 - Migration for entityreference fields.
Class
- RelationMigrateReference
- @file Migration for entityreference fields.
Code
public function prepare(stdClass $relation, stdClass $source_row) {
$relation->endpoints[LANGUAGE_NONE] = array(
array(
'entity_type' => $source_row->source_type,
'entity_id' => $source_row->source_id,
),
array(
'entity_type' => $source_row->destination_type,
'entity_id' => $source_row->destination_id,
),
);
}