function FieldLabelDescriptionTranslation::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
-
core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldLabelDescriptionTranslation.php, line 43
Class
- FieldLabelDescriptionTranslation
- Drupal 6 i18n field label and description source from database.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
public function fields() {
return [
'property' => $this->t('Profile field ID.'),
'lid' => $this->t('Locales target language ID.'),
'language' => $this->t('Language for this field.'),
'translation' => $this->t('Translation of either the title or explanation.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.