You are here

public function LineItem::fields in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/commerce/src/Plugin/migrate/source/commerce1/LineItem.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\LineItem::fields()
  2. 3.0.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\commerce1

Code

public function fields() {
  return [
    'line_item_id' => t('Line Item ID'),
    'title' => t('Product title'),
    'order_id' => t('Order ID'),
    'type' => t('Type'),
    'line_item_label' => t('Line Item Label'),
    'quantity' => t('Quantity'),
    'created' => t('Created'),
    'changed' => t('Changes'),
    'data' => t('Data'),
  ];
}