You are here

public function MenuLinkLocalized::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 MenuLink::fields

File

core/modules/menu_link_content/src/Plugin/migrate/source/d7/MenuLinkLocalized.php, line 32

Class

MenuLinkLocalized
Gets localized menu link translations from source 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;
}