You are here

public function MigrateDestinationCommerceLicense::fields in Commerce Migrate 7

Returns a list of fields available to be mapped.

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 MigrateDestinationEntityAPI::fields

File

plugins/destinations/commerce_license.inc, line 23
Support for commerce products.

Class

MigrateDestinationCommerceLicense
Destination class implementing migration into commerce products.

Code

public function fields($migration = NULL) {
  $fields = parent::fields($migration);
  unset($fields['type']);
  $fields['granted'] = t('The date when the license was granted.');
  $fields['expires'] = t('The date when the license expires. 0 for never.');
  return $fields;
}