You are here

public function Box::query in Drupal 9

Same name and namespace in other branches
  1. 8 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 24

Class

Box
Drupal 6 block source from database.

Namespace

Drupal\block_content\Plugin\migrate\source\d6

Code

public function query() {
  $query = $this
    ->select('boxes', 'b')
    ->fields('b', [
    'bid',
    'body',
    'info',
    'format',
  ]);
  $query
    ->orderBy('b.bid');
  return $query;
}