BlockCustom.php in Drupal 10
File
core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustom.php
View source
<?php
namespace Drupal\block_content\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class BlockCustom extends DrupalSqlBase {
public function query() {
return $this
->select('block_custom', 'b')
->fields('b');
}
public function fields() {
return [
'bid' => $this
->t('The numeric identifier of the block/box'),
'body' => $this
->t('The block/box content'),
'info' => $this
->t('Admin title of the block/box.'),
'format' => $this
->t('Input format of the custom block/box content.'),
];
}
public function getIds() {
$ids['bid']['type'] = 'integer';
return $ids;
}
}