You are here

public function Yaml::fields in Migrate Source YAML 8

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

src/Plugin/migrate/source/Yaml.php, line 98

Class

Yaml
Migrate source plugin for Yaml.

Namespace

Drupal\migrate_source_yaml\Plugin\migrate\source

Code

public function fields() {
  return empty($this->configuration['fields']) ? [] : $this->configuration['fields'];
}