function NoSourceModule::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_drupal_ui/tests/modules/migration_provider_test/src/Plugin/migrate/source/NoSourceModule.php, line 26

Class

NoSourceModule
A test source plugin without a source_module.

Namespace

Drupal\migration_provider_test\Plugin\migrate\source

Code

public function fields() {
  throw new \BadMethodCallException('This method should never be called');
}

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