public function MigrateDestinationCommerceProductType::fields in Commerce Migrate 7
Returns a list of fields available to be mapped.
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
- plugins/
destinations/ commerce_product_type.inc, line 30 - Support for commerce product types.
Class
- MigrateDestinationCommerceProductType
- Destination class implementing migration into commerce product types.
Code
public function fields() {
$fields = array();
$fields['type'] = t('Machine name.');
$fields['name'] = t('Human-readable name.');
$fields['description'] = t('Brief description');
$fields['help'] = t('Help text');
$fields['is_new'] = t('Option: Indicates a new product type with the specified machine name should be created');
return $fields;
}