public function TrackChangesTest::fields in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/modules/migrate_track_changes_test/src/Plugin/migrate/source/TrackChangesTest.php \Drupal\migrate_track_changes_test\Plugin\migrate\source\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;
}