You are here

public function VocabularyTranslation::fields in Drupal 9

Same name in this branch
  1. 9 core/modules/taxonomy/src/Plugin/migrate/source/d6/VocabularyTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d6\VocabularyTranslation::fields()
  2. 9 core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\VocabularyTranslation::fields()
Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\VocabularyTranslation::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

core/modules/taxonomy/src/Plugin/migrate/source/d7/VocabularyTranslation.php, line 49

Class

VocabularyTranslation
Drupal 7 i18n vocabulary translations source from database.

Namespace

Drupal\taxonomy\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'i18n_mode' => $this
      ->t('Internationalization mode.'),
    'v_language' => $this
      ->t('Language from the taxonomy_vocabulary table.'),
    'property' => $this
      ->t('Name of property being translated.'),
    'type' => $this
      ->t('Name of property being translated.'),
    'objectid' => $this
      ->t('Name of property being translated.'),
    'lt_lid' => $this
      ->t('Name of property being translated.'),
    'translation' => $this
      ->t('Translation of either the name or the description.'),
    'lid' => $this
      ->t('Language string ID'),
    'textgroup' => $this
      ->t('A module defined group of translations'),
    'context' => $this
      ->t('Full string ID for quick search: type:objectid:property.'),
    'objectindex' => $this
      ->t('Integer value of Object ID'),
    'format' => $this
      ->t('The {filter_format}.format of the string'),
    'language' => $this
      ->t('Language code from locales_target table'),
    'plid' => $this
      ->t('Parent lid'),
    'plural' => $this
      ->t('Plural index number'),
    'i18n_status' => $this
      ->t('Translation needs update'),
  ];
  return parent::fields() + $fields;
}