public function OrderProduct::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/OrderProduct.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\OrderProduct::fields()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/OrderProduct.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\OrderProduct::fields()
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
- modules/
ubercart/ src/ Plugin/ migrate/ source/ OrderProduct.php, line 55
Class
- OrderProduct
- Ubercart order product source.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'order_product_id' => $this
->t('Line item ID'),
'order_id' => $this
->t('Order ID'),
'nid' => $this
->t('Product ID'),
'title' => $this
->t('Product name'),
'qty' => $this
->t('Quantity sold'),
'price' => $this
->t('Price of product sold'),
'data' => $this
->t('Order line item data'),
'created' => $this
->t('Created timestamp, from the order'),
'modified' => $this
->t('Modified timestamp, from the order'),
'currency' => $this
->t("Currency, default to USD'"),
];
return $fields;
}