You are here

public function StubSourcePlugin::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::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/src/Unit/MigrateSourceTest.php, line 472
Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.

Class

StubSourcePlugin
Stubbed source plugin for testing base class implementations.

Namespace

Drupal\Tests\migrate\Unit

Code

public function fields() {
  return [];
}