You are here

public function MenuLinkLocalized::fields in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php \Drupal\menu_link_content\Plugin\migrate\source\d7\MenuLinkLocalized::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/d7/MenuLinkLocalized.php, line 32

Class

MenuLinkLocalized
Drupal 7 localized menu link translations source from database.

Namespace

Drupal\menu_link_content\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'ml_language' => $this
      ->t('Menu link ID of the source language menu link.'),
    'skip_source_translation' => $this
      ->t('Menu link description translation.'),
  ];
  return parent::fields() + $fields;
}