3 namespace Drupal\block_content\Plugin\migrate\source\d7;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Drupal 7 custom block source from database.
11 * id = "d7_block_custom",
12 * source_module = "block"
15 class BlockCustom extends DrupalSqlBase {
20 public function query() {
21 return $this->select('block_custom', 'b')->fields('b');
27 public function fields() {
29 'bid' => $this->t('The numeric identifier of the block/box'),
30 'body' => $this->t('The block/box content'),
31 'info' => $this->t('Admin title of the block/box.'),
32 'format' => $this->t('Input format of the custom block/box content.'),
39 public function getIds() {
40 $ids['bid']['type'] = 'integer';