You are here

public function FieldInstanceOptionTranslation::fields in Drupal 9

Same name and namespace in other branches
  1. 8 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 32

Class

FieldInstanceOptionTranslation
Drupal 6 i18n field instance option labels source from database.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function fields() {
  $fields = [
    'type_name' => $this
      ->t('Type (article, page, ....)'),
  ];
  return parent::fields() + $fields;
}