public function Product::fields in Commerce Migrate 3.0.x
Same name in this branch
- 3.0.x modules/ubercart/src/Plugin/migrate/source/uc7/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7\Product::fields()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/uc6/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc6\Product::fields()
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/uc7/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7\Product::fields()
- 3.1.x modules/ubercart/src/Plugin/migrate/source/uc7/Product.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7\Product::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 Node::fields
File
- modules/
ubercart/ src/ Plugin/ migrate/ source/ uc7/ Product.php, line 34
Class
- Product
- Ubercart 7 product source.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7Code
public function fields() {
$fields = [
'model' => $this
->t('Product model'),
'sell_price' => $this
->t('Sell price of the product'),
'name' => $this
->t('Node type'),
'stores' => $this
->t('Stores'),
];
return parent::fields() + $fields;
}