public function ProductDisplayType::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/ProductDisplayType.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplayType::fields()
- 3.0.x modules/commerce/src/Plugin/migrate/source/commerce1/ProductDisplayType.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\ProductDisplayType::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/ ProductDisplayType.php, line 21
Class
- ProductDisplayType
- Gets Commerce 1 commerce_product_type data from database.
Namespace
Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1Code
public function fields() {
return [
'field_name' => $this
->t('Product reference field name'),
'type' => $this
->t('Type'),
'name' => $this
->t('Name'),
'description' => $this
->t('Description'),
'help' => $this
->t('Help'),
'data' => $this
->t('Product reference field instance data'),
'variation_type' => $this
->t('Product variation type'),
];
}