public function MigrateCommercePriceFieldHandler::fields in Commerce Migrate 7
Returns a list of subfields.
Parameters
string $field_type: One of registered field types.
Return value
string[] An array of subfields.
File
- plugins/
destinations/ fields.inc, line 65 - Support for processing commerce fields (product reference, customer profile reference, price)
Class
- MigrateCommercePriceFieldHandler
- Class MigrateCommercePriceFieldHandler.
Code
public function fields($field_type) {
// Declare our arguments to also be available as subfields.
$fields = array(
'currency_code' => t('Subfield: currency code'),
);
return $fields;
}