function FieldOptionTranslation::fields

Same name in this branch
  1. 9 core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
Same name in other branches
  1. 8.9.x core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
  2. 8.9.x core/modules/field/src/Plugin/migrate/source/d7/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d7\FieldOptionTranslation::fields()
  3. 10 core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
  4. 10 core/modules/field/src/Plugin/migrate/source/d7/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d7\FieldOptionTranslation::fields()
  5. 11.x core/modules/field/src/Plugin/migrate/source/d6/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d6\FieldOptionTranslation::fields()
  6. 11.x core/modules/field/src/Plugin/migrate/source/d7/FieldOptionTranslation.php \Drupal\field\Plugin\migrate\source\d7\FieldOptionTranslation::fields()

Overrides Field::fields

File

core/modules/field/src/Plugin/migrate/source/d7/FieldOptionTranslation.php, line 52

Class

FieldOptionTranslation
Drupal 7 i18n field option label source from database.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
    $fields = [
        'bundle' => $this->t('Entity bundle'),
        'lid' => $this->t('Source string ID'),
        'textgroup' => $this->t('A module defined group of translations'),
        'context' => $this->t('Full string ID'),
        'objectid' => $this->t('Object ID'),
        'property' => $this->t('Object property for this string'),
        'objectindex' => $this->t('Integer value of Object ID'),
        'format' => $this->t('The input format used by this string'),
        'translation' => $this->t('Translation of the option'),
        'language' => $this->t('Language code'),
        'plid' => $this->t('Parent lid'),
        'plural' => $this->t('Plural index number in case of plural strings'),
        'i18n_status' => $this->t('A boolean indicating whether this translation needs to be updated'),
    ];
    return parent::fields() + $fields;
}

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