You are here

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

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

File

modules/commerce/src/Plugin/migrate/source/commerce1/TaxType.php, line 28

Class

TaxType
Gets Commerce 1 commerce_tax_type data from database.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1

Code

public function fields() {
  return [
    'name' => $this
      ->t('TaxType Name'),
    'title' => $this
      ->t('Title'),
    'display_title' => $this
      ->t('Display title'),
    'description' => $this
      ->t('Description'),
    'display_inclusive' => $this
      ->t('Display inclusive'),
    'rate' => $this
      ->t('TaxType Rate'),
    'type' => $this
      ->t('Tax type'),
    'default_rules_component' => $this
      ->t('Default rules component'),
    'module' => $this
      ->t('Module'),
  ];
}