You are here

public function MigrateDestinationLineItem::fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Returns a list of fields available to be mapped for the node type (bundle)

Parameters

Migration $migration: Optionally, the migration containing this destination.

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

merci_migrate/merci_line_item.inc, line 98

Class

MigrateDestinationLineItem

Code

public function fields($migration = NULL) {
  $fields = array();

  // First the core (node table) properties
  $fields['line_item_id'] = t('Entity ID');
  $fields['type'] = t('Type');
  $fields['line_item_label'] = t('Title');
  $fields['entity_id'] = t('Parent ID');
  $fields['quantity'] = t('Quantity');
  $fields['created'] = t('Created');
  $fields['changed'] = t('Changed');

  // Then add in anything provided by handlers
  $fields += migrate_handler_invoke_all('Entity', 'fields', $this->entityType, $this->bundle, $migration);
  return $fields;
}