public function TrackChangesTest::query 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::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ migrate/ tests/ modules/ migrate_track_changes_test/ src/ Plugin/ migrate/ source/ TrackChangesTest.php, line 19
Class
- TrackChangesTest
- Source plugin for migration track changes tests.
Namespace
Drupal\migrate_track_changes_test\Plugin\migrate\sourceCode
public function query() {
$field_names = array_keys($this
->fields());
$query = $this
->select('track_changes_term', 't')
->fields('t', $field_names);
foreach ($field_names as $field_name) {
$query
->groupBy($field_name);
}
return $query;
}