You are here

public function MigrateSourceJSON::fields in Migrate 7.2

Returns a list of fields available to be mapped from the source query.

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/json.inc, line 511
Support for migration from JSON sources.

Class

MigrateSourceJSON
Implementation of MigrateSource, to handle imports from stand-alone JSON files.

Code

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