You are here

public function MigrateSourceYaml::fields in Migrate Source YAML 7

Derived classes must implement fields(), returning a list of available source fields.

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

includes/MigrateSourceYaml.inc, line 56
Contains MigrateSourceYaml.

Class

MigrateSourceYaml
Migrate source class to import from a YAML file.

Code

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