public function LineItem::fields in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/LineItem.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\LineItem::fields()
- 3.1.x modules/commerce/src/Plugin/migrate/source/commerce1/LineItem.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\LineItem::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/
commerce/ src/ Plugin/ migrate/ source/ commerce1/ LineItem.php, line 36
Class
- LineItem
- Gets Commerce 1 commerce_line_items from source database.
Namespace
Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1Code
public function fields() {
return [
'line_item_id' => $this
->t('Line Item ID'),
'title' => $this
->t('Product title'),
'order_id' => $this
->t('Order ID'),
'type' => $this
->t('Type'),
'line_item_label' => $this
->t('Line Item Label'),
'quantity' => $this
->t('Quantity'),
'created' => $this
->t('Created'),
'changed' => $this
->t('Changes'),
'data' => $this
->t('Data'),
];
}