public function MenuTranslation::fields in Drupal 9
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 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\d7Code
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;
}