function HighWaterTest::query

Same name in other branches
  1. 9 core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php \Drupal\migrate_high_water_test\Plugin\migrate\source\HighWaterTest::query()
  2. 8.9.x core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php \Drupal\migrate_high_water_test\Plugin\migrate\source\HighWaterTest::query()
  3. 10 core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php \Drupal\migrate_high_water_test\Plugin\migrate\source\HighWaterTest::query()

Overrides SqlBase::query

File

core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php, line 21

Class

HighWaterTest
Source plugin for migration high water tests.

Namespace

Drupal\migrate_high_water_test\Plugin\migrate\source

Code

public function query() {
    $field_names = array_keys($this->fields());
    $query = $this->select('high_water_node', 'm')
        ->fields('m', $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.