You are here

public function HighWaterTest::fields in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php \Drupal\migrate_high_water_test\Plugin\migrate\source\HighWaterTest::fields()
  2. 9 core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php \Drupal\migrate_high_water_test\Plugin\migrate\source\HighWaterTest::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

1 call to HighWaterTest::fields()
HighWaterTest::query in core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php

File

core/modules/migrate/tests/modules/migrate_high_water_test/src/Plugin/migrate/source/HighWaterTest.php, line 33

Class

HighWaterTest
Source plugin for migration high water tests.

Namespace

Drupal\migrate_high_water_test\Plugin\migrate\source

Code

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