You are here

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

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

File

modules/ubercart/src/Plugin/migrate/source/uc7/Field.php, line 86

Class

Field
Ubercart 7 field source from database.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source\uc7

Code

public function fields() {
  $fields = parent::fields();
  $fields['commerce_product'] = $this
    ->t('Product node flag');
  return $fields;
}