function 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;
}

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