function SimpleSource::fields
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
-
core/
modules/ migrate/ tests/ modules/ migrate_plugin_config_test/ src/ Plugin/ migrate/ source/ SimpleSource.php, line 27
Class
- SimpleSource
- Simple source for testing changing configuration.
Namespace
Drupal\migrate_plugin_config_test\Plugin\migrate\sourceCode
public function fields() : array {
return [
'foo' => $this->t('Test field.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.