You are here

public function FieldLabelDescriptionTranslation::fields in Drupal 10

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

Code

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.'),
  ];
}