public function FieldOptionTranslation::fields in Drupal 8
Same name in this branch
- 8 core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
- 8 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
- 9 core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
- 10 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 call to FieldOptionTranslation::fields()
- FieldInstanceOptionTranslation::fields in core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstanceOptionTranslation.php - Returns available fields on the source.
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 55
Class
- FieldOptionTranslation
- Gets field option label translations.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
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;
}