You are here

public function MigrateSourceList::fields in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/list.inc \MigrateSourceList::fields()

Returns a list of fields available to be mapped from the source query. Since we can't reliably figure out what "fields" are in the source, it's up to the implementing Migration constructor to fill them in.

Return value

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

Overrides MigrateSource::fields

File

plugins/sources/list.inc, line 123
Support for migration from sources with distinct means of listing items to import and obtaining the items themselves.

Class

MigrateSourceList
Implementation of MigrateSource, providing the semantics of iterating over IDs provided by a MigrateList and retrieving data from a MigrateItem.

Code

public function fields() {
  return $this->fields;
}