function MenuTranslation::fields

Same name in other branches
  1. 10 core/modules/system/src/Plugin/migrate/source/d7/MenuTranslation.php \Drupal\system\Plugin\migrate\source\d7\MenuTranslation::fields()
  2. 11.x core/modules/system/src/Plugin/migrate/source/d7/MenuTranslation.php \Drupal\system\Plugin\migrate\source\d7\MenuTranslation::fields()

Overrides Menu::fields

File

core/modules/system/src/Plugin/migrate/source/d7/MenuTranslation.php, line 59

Class

MenuTranslation
Drupal 7 i18n menu translation source from database.

Namespace

Drupal\system\Plugin\migrate\source\d7

Code

public function fields() {
    $fields = [
        'lid' => $this->t('Language string ID'),
        'language' => $this->t('Menu language'),
        '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'),
        'plid' => $this->t('Parent lid'),
        'i18n_status' => $this->t('Translation needs update'),
    ] + parent::fields();
    return $fields;
}

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