You are here

public function MigrateDestinationMenu::fields in Migrate 7.2

Returns a list of fields available to be mapped for menus.

Parameters

Migration $migration: Optionally, the migration containing this destination.

Return value

array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.

Overrides MigrateDestination::fields

File

plugins/destinations/menu.inc, line 44
Support for menu destinations.

Class

MigrateDestinationMenu
Destination class implementing migration into {menu_custom}.

Code

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