public function BeerComment::query in Migrate Plus 8
Same name and namespace in other branches
- 8.5 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
- 8.2 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
- 8.3 migrate_example/src/Plugin/migrate/source/BeerComment.php \Drupal\migrate_example\Plugin\migrate\source\BeerComment::query()
- 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\sourceCode
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;
}