function TrackChangesTest::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
1 call to TrackChangesTest::fields()
- TrackChangesTest::query in core/
modules/ migrate/ tests/ modules/ migrate_track_changes_test/ src/ Plugin/ migrate/ source/ TrackChangesTest.php
File
-
core/
modules/ migrate/ tests/ modules/ migrate_track_changes_test/ src/ Plugin/ migrate/ source/ TrackChangesTest.php, line 33
Class
- TrackChangesTest
- Source plugin for migration track changes tests.
Namespace
Drupal\migrate_track_changes_test\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'tid' => $this->t('Term id'),
'name' => $this->t('Name'),
'description' => $this->t('Description'),
];
return $fields;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.