function FieldLabelDescriptionTranslation::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 MigrateSourceInterface::fields

File

core/modules/field/src/Plugin/migrate/source/d7/FieldLabelDescriptionTranslation.php, line 62

Class

FieldLabelDescriptionTranslation
Drupal 7 i18n field label and description source from database.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'lid' => $this->t('Locales target language ID.'),
    'textgroup' => $this->t('A module defined group of translations'),
    'context' => $this->t('Full string ID for quick search: type:objectid:property.'),
    'objectid' => $this->t('Object ID'),
    'type' => $this->t('Object type for this string'),
    'property' => $this->t('Object property for this string'),
    'objectindex' => $this->t('Integer value of Object ID'),
    'format' => $this->t('The {filter_format}.format of the string'),
    'translation' => $this->t('Translation'),
    'language' => $this->t('Language code'),
    'plid' => $this->t('Parent lid'),
    'plural' => $this->t('Plural index number'),
    'i18n_status' => $this->t('Translation needs update'),
    'id' => $this->t('The field instance ID.'),
    'field_id' => $this->t('The field ID.'),
    'field_name' => $this->t('The field name.'),
    'entity_type' => $this->t('The entity type.'),
    'bundle' => $this->t('The entity bundle.'),
    'data' => $this->t('The field instance data.'),
    'deleted' => $this->t('Deleted'),
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.