You are here

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

Same name and namespace in other branches
  1. 8.2 modules/ubercart/src/Plugin/migrate/source/Store.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Store::fields()
  2. 3.0.x modules/ubercart/src/Plugin/migrate/source/Store.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Store::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/Store.php, line 21

Class

Store
Gets the Ubercart store data.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source

Code

public function fields() {
  return parent::fields() + [
    'uid' => $this
      ->t('User ID'),
    'country_iso_code_2' => $this
      ->t('Country ISO code 2'),
  ];
}