public function Currency::fields in Commerce Migrate 8.2
Same name in this branch
- 8.2 modules/ubercart/src/Plugin/migrate/source/Currency.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Currency::fields()
- 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/Currency.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\Currency::fields()
Same name and namespace in other branches
- 3.1.x modules/ubercart/src/Plugin/migrate/source/Currency.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Currency::fields()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/Currency.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Currency::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 Variable::fields
File
- modules/
ubercart/ src/ Plugin/ migrate/ source/ Currency.php, line 65
Class
- Currency
- Gets the Ubercart currency data.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\sourceCode
public function fields() {
return parent::fields() + [
'currency_name' => $this
->t('Currency name'),
'numeric_code' => $this
->t('Currency code numeric code'),
];
}