public function MenuLinkTranslation::fields in Drupal 9
Same name in this branch
- 9 core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php \Drupal\menu_link_content\Plugin\migrate\source\d6\MenuLinkTranslation::fields()
- 9 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkTranslation.php \Drupal\menu_link_content\Plugin\migrate\source\d7\MenuLinkTranslation::fields()
Same name and namespace in other branches
- 8 core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php \Drupal\menu_link_content\Plugin\migrate\source\d6\MenuLinkTranslation::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 MenuLink::fields
File
- core/
modules/ menu_link_content/ src/ Plugin/ migrate/ source/ d6/ MenuLinkTranslation.php, line 76
Class
- MenuLinkTranslation
- Gets Menu link translations from source database.
Namespace
Drupal\menu_link_content\Plugin\migrate\source\d6Code
public function fields() {
$fields = [
'language' => $this
->t('Language for this menu.'),
'title_translated' => $this
->t('Menu link title translation.'),
'description_translated' => $this
->t('Menu link description translation.'),
];
return parent::fields() + $fields;
}