You are here

public function BeerComment::query in Migrate Plus 8.2

Same name and namespace in other branches
  1. 8.5 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
  2. 8 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
  3. 8.3 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
  4. 8.4 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

migrate_example/src/Plugin/migrate/source/BeerComment.php, line 19

Class

BeerComment
Source plugin for beer comments.

Namespace

Drupal\migrate_example\Plugin\migrate\source

Code

public function query() {
  $query = $this
    ->select('migrate_example_beer_comment', 'mec')
    ->fields('mec', [
    'cid',
    'cid_parent',
    'name',
    'mail',
    'aid',
    'body',
    'bid',
    'subject',
  ])
    ->orderBy('cid_parent', 'ASC');
  return $query;
}