3 namespace Drupal\migrate\Plugin\migrate\source;
6 * Provides a dummy select query object for source plugins.
8 * Trait providing a dummy select query object for source plugins based on
9 * SqlBase which override initializeIterator() to obtain their data from other
10 * SqlBase services instead of a direct query. This ensures that query() returns
11 * a valid object, even though it is not used for iteration.
13 trait DummyQueryTrait {
18 public function query() {
19 // Pass an arbritrary table name - the query should never be executed
21 $query = $this->select(uniqid(), 's')
23 $query->addExpression('1');
30 public function count($refresh = FALSE) {