You are here

public function FieldOptionTranslation::fields in Drupal 10

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

1 method overrides FieldOptionTranslation::fields()
FieldInstanceOptionTranslation::fields in core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php
Returns available fields on the source.

File

core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php, line 60

Class

FieldOptionTranslation
Drupal 6 i18n field option labels source from database.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function fields() {
  $fields = [
    'property' => $this
      ->t('Option ID.'),
    'objectid' => $this
      ->t('Object ID'),
    'objectindex' => $this
      ->t('Integer value of Object ID'),
    'format' => $this
      ->t('The input format used by this string'),
    'lid' => $this
      ->t('Source string ID'),
    'language' => $this
      ->t('Language code'),
    'translation' => $this
      ->t('Translation of the option'),
    'plid' => $this
      ->t('Parent lid'),
    'plural' => $this
      ->t('Plural index number in case of plural strings'),
  ];
  return parent::fields() + $fields;
}