public function ProductDisplay::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/ProductDisplay.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplay::fields()
- 3.0.x modules/commerce/src/Plugin/migrate/source/commerce1/ProductDisplay.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplay::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/ ProductDisplay.php, line 57
Class
- ProductDisplay
- DGets Commerce 1 commerce_line_item data from database.
Namespace
Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1Code
public function fields() {
return [
'nid' => $this
->t('Product (variation) ID'),
'title' => $this
->t('Title'),
'type' => $this
->t('Type'),
'uid' => $this
->t('Owner'),
'status' => $this
->t('Status'),
'created' => $this
->t('Created'),
'changed' => $this
->t('Changes'),
'field_name' => $this
->t('Field name for variations'),
'variations_field' => $this
->t('Value of the product reference field'),
];
}