function MigrateSourceWithAnnotations::fields

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/modules/migrate_source_annotation_bc_test/src/Plugin/migrate/source/MigrateSourceWithAnnotations.php \Drupal\migrate_source_annotation_bc_test\Plugin\migrate\source\MigrateSourceWithAnnotations::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_source_annotation_bc_test/src/Plugin/migrate/source/MigrateSourceWithAnnotations.php, line 27

Class

MigrateSourceWithAnnotations
A migration source plugin with annotations and a single provider.

Namespace

Drupal\migrate_source_annotation_bc_test\Plugin\migrate\source

Code

public function fields() {
  return [];
}

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