public function Box::query in Drupal 8
Same name and namespace in other branches
- 9 core/modules/block_content/src/Plugin/migrate/source/d6/Box.php \Drupal\block_content\Plugin\migrate\source\d6\Box::query()
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- core/
modules/ block_content/ src/ Plugin/ migrate/ source/ d6/ Box.php, line 20
Class
- Box
- Drupal 6 block source from database.
Namespace
Drupal\block_content\Plugin\migrate\source\d6Code
public function query() {
$query = $this
->select('boxes', 'b')
->fields('b', [
'bid',
'body',
'info',
'format',
]);
$query
->orderBy('b.bid');
return $query;
}