public function TermLocalizedTranslation::fields in Drupal 8
Same name in this branch
- 8 core/modules/taxonomy/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d6\TermLocalizedTranslation::fields()
- 8 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\TermLocalizedTranslation::fields()
Same name and namespace in other branches
- 9 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\TermLocalizedTranslation::fields()
- 10 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php \Drupal\taxonomy\Plugin\migrate\source\d7\TermLocalizedTranslation::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 Term::fields
File
- core/
modules/ taxonomy/ src/ Plugin/ migrate/ source/ d7/ TermLocalizedTranslation.php, line 90
Class
- TermLocalizedTranslation
- Gets i18n taxonomy terms from source database.
Namespace
Drupal\taxonomy\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'language' => $this
->t('Language for this term.'),
'name_translated' => $this
->t('Term name translation.'),
'description_translated' => $this
->t('Term description translation.'),
];
return parent::fields() + $fields;
}