You are here

public function Menu::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Plugin/migrate/source/Menu.php \Drupal\system\Plugin\migrate\source\Menu::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 MigrateSourceInterface::fields

File

core/modules/system/src/Plugin/migrate/source/Menu.php, line 27

Class

Menu
Menu source from database.

Namespace

Drupal\system\Plugin\migrate\source

Code

public function fields() {
  return [
    'menu_name' => $this
      ->t('The menu name. Primary key.'),
    'title' => $this
      ->t('The human-readable name of the menu.'),
    'description' => $this
      ->t('A description of the menu'),
  ];
}