public function WineTerm::query in Migrate Plus 8
Same name and namespace in other branches
- 8.5 migrate_example_advanced/src/Plugin/migrate/source/WineTerm.php \Drupal\migrate_example_advanced\Plugin\migrate\source\WineTerm::query()
- 8.2 migrate_example_advanced/src/Plugin/migrate/source/WineTerm.php \Drupal\migrate_example_advanced\Plugin\migrate\source\WineTerm::query()
- 8.3 migrate_example_advanced/src/Plugin/migrate/source/WineTerm.php \Drupal\migrate_example_advanced\Plugin\migrate\source\WineTerm::query()
- 8.4 migrate_example_advanced/src/Plugin/migrate/source/WineTerm.php \Drupal\migrate_example_advanced\Plugin\migrate\source\WineTerm::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- migrate_example_advanced/
src/ Plugin/ migrate/ source/ WineTerm.php, line 25 - Contains \Drupal\migrate_example_advanced\Plugin\migrate\source\WineTerm.
Class
- WineTerm
- A straight-forward SQL-based source plugin, to retrieve category data from the source database.
Namespace
Drupal\migrate_example_advanced\Plugin\migrate\sourceCode
public function query() {
return $this
->select('migrate_example_advanced_categories', 'wc')
->fields('wc', [
'categoryid',
'type',
'name',
'details',
'category_parent',
'ordering',
])
->orderBy('category_parent', 'ASC');
}