function 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'),
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.