You are here

public function ProfileFieldOptionTranslation::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/Plugin/migrate/source/d6/ProfileFieldOptionTranslation.php \Drupal\user\Plugin\migrate\source\d6\ProfileFieldOptionTranslation::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/user/src/Plugin/migrate/source/d6/ProfileFieldOptionTranslation.php, line 36

Class

ProfileFieldOptionTranslation
Gets field option label translations.

Namespace

Drupal\user\Plugin\migrate\source\d6

Code

public function fields() {
  return parent::fields() + [
    'property' => $this
      ->t('Option ID.'),
    'objectid' => $this
      ->t('Field name'),
    'language' => $this
      ->t('Language for this field.'),
    'translation' => $this
      ->t('Translation of either the title or explanation.'),
  ];
}