public static function CommerceMigrateExampleOrdersCsv::csvColumns in Commerce Migrate 7
Provide the names of the incoming CSV file columns.
WARNING! Column names MUST BE IN ORDER to CSV file structure!
Return value
string[] An associative array where key is a machine name of a field from CSV file and value - human-readable name of a CSV column.
Overrides CommerceMigrateExampleMigration::csvColumns
1 call to CommerceMigrateExampleOrdersCsv::csvColumns()
- CommerceExampleOrderMigration::__construct in commerce_migrate_example/
migrations/ order.inc - General initialization of a Migration object.
File
- commerce_migrate_example/
migrations/ abstractions/ orders.inc, line 17 - Represents "orders.csv".
Class
- CommerceMigrateExampleOrdersCsv
- Class CommerceMigrateExampleOrdersCsv.
Code
public static function csvColumns() {
return array(
'order_number' => 'Number',
'status' => 'Number',
'mail' => 'Number',
'hostname' => 'Hostname',
);
}