function TrackChangesTest::query
Same name in other branches
- 9 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()
- 8.9.x 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()
- 10 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()
Overrides SqlBase::query
File
-
core/
modules/ migrate/ tests/ modules/ migrate_track_changes_test/ src/ Plugin/ migrate/ source/ TrackChangesTest.php, line 21
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.