function QueryBatchTest::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_query_batch_test/ src/ Plugin/ migrate/ source/ QueryBatchTest.php, line 26
Class
- QueryBatchTest
- Source plugin for migration high water tests.
Namespace
Drupal\migrate_query_batch_test\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'id' => $this->t('Id'),
'data' => $this->t('data'),
];
return $fields;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.