function Box::query

Same name in other branches
  1. 9 core/modules/block_content/src/Plugin/migrate/source/d6/Box.php \Drupal\block_content\Plugin\migrate\source\d6\Box::query()
  2. 8.9.x core/modules/block_content/src/Plugin/migrate/source/d6/Box.php \Drupal\block_content\Plugin\migrate\source\d6\Box::query()
  3. 11.x core/modules/block_content/src/Plugin/migrate/source/d6/Box.php \Drupal\block_content\Plugin\migrate\source\d6\Box::query()

Overrides SqlBase::query

File

core/modules/block_content/src/Plugin/migrate/source/d6/Box.php, line 25

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.