You are here

public function QueryBatchTest::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php \Drupal\migrate_query_batch_test\Plugin\migrate\source\QueryBatchTest::fields()
  2. 10 core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php \Drupal\migrate_query_batch_test\Plugin\migrate\source\QueryBatchTest::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

core/modules/migrate/tests/modules/migrate_query_batch_test/src/Plugin/migrate/source/QueryBatchTest.php, line 26

Class

QueryBatchTest
Source plugin for migration high water tests.

Namespace

Drupal\migrate_query_batch_test\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('Id'),
    'data' => $this
      ->t('data'),
  ];
  return $fields;
}