function TestSqlPrepareQuery::fields
Same name and namespace in other branches
- 11.x core/modules/migrate/tests/modules/migrate_sql_prepare_query_test/src/Plugin/migrate/source/TestSqlPrepareQuery.php \Drupal\migrate_sql_prepare_query_test\Plugin\migrate\source\TestSqlPrepareQuery::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_sql_prepare_query_test/ src/ Plugin/ migrate/ source/ TestSqlPrepareQuery.php, line 42
Class
- TestSqlPrepareQuery
- Source plugin for prepare query test.
Namespace
Drupal\migrate_sql_prepare_query_test\Plugin\migrate\sourceCode
public function fields() {
return [
'id' => 'ID',
'name' => 'Name',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.