You are here

public function MigrateDestinationRestrictions::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_restrictions.inc, line 123
Support for node destinations.

Class

MigrateDestinationRestrictions
Destination class implementing migration into nodes.

Code

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

  // First the core (node table) properties
  $fields['id'] = t('Entity ID');
  $fields['type'] = t('Type');
  $fields['title'] = t('Title');

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