3 namespace Drupal\block_content\Plugin\migrate\source\d6;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Drupal 6 block source from database.
14 class Box extends DrupalSqlBase {
19 public function query() {
20 $query = $this->select('boxes', 'b')
21 ->fields('b', ['bid', 'body', 'info', 'format']);
22 $query->orderBy('b.bid');
30 public function fields() {
32 'bid' => $this->t('The numeric identifier of the block/box'),
33 'body' => $this->t('The block/box content'),
34 'info' => $this->t('Admin title of the block/box.'),
35 'format' => $this->t('Input format of the custom block/box content.'),
42 public function getIds() {
43 $ids['bid']['type'] = 'integer';