You are here

public function FieldLabelDescriptionTranslation::fields in Drupal 8

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

Class

FieldLabelDescriptionTranslation
Gets field label and description translations.

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