QueryBatchTest.php in Drupal 10
File
core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php
View source
<?php
namespace Drupal\migrate_query_batch_test\Plugin\migrate\source;
use Drupal\migrate\Plugin\migrate\source\SqlBase;
class QueryBatchTest extends SqlBase {
public function query() {
return $this
->select('query_batch_test', 'q')
->fields('q');
}
public function fields() {
$fields = [
'id' => $this
->t('Id'),
'data' => $this
->t('data'),
];
return $fields;
}
public function getIds() {
return [
'id' => [
'type' => 'integer',
],
];
}
}