You are here

public function Currency::fields in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/ubercart/src/Plugin/migrate/source/Currency.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Currency::fields()
  2. 3.1.x 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
  1. 8.2 modules/ubercart/src/Plugin/migrate/source/Currency.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Currency::fields()
  2. 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\source

Code

public function fields() {
  return parent::fields() + [
    'currency_name' => $this
      ->t('Currency name'),
    'numeric_code' => $this
      ->t('Currency code numeric code'),
  ];
}