public function ProfileFieldTranslation::fields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::fields()
- 9 core/modules/config_translation/src/Plugin/migrate/source/d6/ProfileFieldTranslation.php \Drupal\config_translation\Plugin\migrate\source\d6\ProfileFieldTranslation::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 ProfileField::fields
File
- core/
modules/ config_translation/ src/ Plugin/ migrate/ source/ d6/ ProfileFieldTranslation.php, line 37
Class
- ProfileFieldTranslation
- Drupal 6 i18n strings profile field source from database.
Namespace
Drupal\config_translation\Plugin\migrate\source\d6Code
public function fields() {
$fields = [
'lid' => $this
->t('Locales target language ID.'),
'language' => $this
->t('Language for this field.'),
'translation' => $this
->t('Translation of either the title or explanation.'),
];
return parent::fields() + $fields;
}