You are here

public function Vocabulary::fields in Commerce Migrate 8.2

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

File

modules/commerce/src/Plugin/migrate/source/commerce1/Vocabulary.php, line 21

Class

Vocabulary
Drupal 7 vocabularies source from database.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1

Code

public function fields() {
  return parent::fields() + [
    'attribute' => $this
      ->t('Attribute flag'),
  ];
}