You are here

public function BeerComment::query in Migrate Plus 8

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.2 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 24
Contains \Drupal\migrate_example\Plugin\migrate\source\BeerComment.

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;
}