QueryBatchTest.php

Same filename in this branch
  1. 10 core/modules/migrate/tests/src/Kernel/QueryBatchTest.php
Same filename in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/QueryBatchTest.php
  2. 9 core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php
  3. 8.9.x core/modules/migrate/tests/src/Kernel/QueryBatchTest.php
  4. 8.9.x core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php
  5. 11.x core/modules/migrate/tests/src/Kernel/QueryBatchTest.php
  6. 11.x core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php

Namespace

Drupal\migrate_query_batch_test\Plugin\migrate\source

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;

/**
 * Source plugin for migration high water tests.
 *
 * @MigrateSource(
 *   id = "query_batch_test"
 * )
 */
class QueryBatchTest extends SqlBase {
    
    /**
     * {@inheritdoc}
     */
    public function query() {
        return $this->select('query_batch_test', 'q')
            ->fields('q');
    }
    
    /**
     * {@inheritdoc}
     */
    public function fields() {
        $fields = [
            'id' => $this->t('Id'),
            'data' => $this->t('data'),
        ];
        return $fields;
    }
    
    /**
     * {@inheritdoc}
     */
    public function getIds() {
        return [
            'id' => [
                'type' => 'integer',
            ],
        ];
    }

}

Classes

Title Deprecated Summary
QueryBatchTest Source plugin for migration high water tests.

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