You are here

public function ExceptionThrowingTestSource::fields in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.4 tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php \Drupal\migrate_tools_test\Plugin\migrate\source\ExceptionThrowingTestSource::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

tests/modules/migrate_tools_test/src/Plugin/migrate/source/ExceptionThrowingTestSource.php, line 20

Class

ExceptionThrowingTestSource
A simple migrate source for testing exception handling.

Namespace

Drupal\migrate_tools_test\Plugin\migrate\source

Code

public function fields() {
  return [];
}