public function FieldInstanceOptionTranslation::fields in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/src/Plugin/migrate/source/d6/FieldInstanceOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldInstanceOptionTranslation::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 FieldOptionTranslation::fields
File
- core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstanceOptionTranslation.php, line 28
Class
- FieldInstanceOptionTranslation
- Gets field instance option label translations.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
public function fields() {
$fields = [
'type_name' => $this
->t('Type (article, page, ....)'),
];
return parent::fields() + $fields;
}