public function MigrateDestinationFieldCollection::fields in Field collection 7
Returns a list of fields available to be mapped for this collection (bundle).
Return value
array Keys: machine names of the fields (to be passed to addFieldMapping). Values: Human-friendly descriptions of the fields.
Overrides MigrateDestination::fields
File
- ./
field_collection.migrate.inc, line 79 - Support for the Migrate API.
Class
- MigrateDestinationFieldCollection
- Destination class implementing migration into field_collection.
Code
public function fields() {
$fields = migrate_handler_invoke_all('Entity', 'fields', $this->entityType, $this->bundle);
$fields['item_id'] = t('Field collection entity ID');
$fields['host_entity_id'] = t('Field collection host ID');
return $fields;
}