You are here

public function ParserWithMappingForm::getMappingSources in Feeds 8.3

Declare the possible mapping sources that this parser produces.

@todo Get rid of the false return here and create a configurable source solution for parsers. @todo Add type data here for automatic mappings. @todo Provide code example.

Return value

array|false An array of mapping sources, or false if the sources can be defined by typing a value in a text field.

Overrides ParserInterface::getMappingSources

File

tests/modules/feeds_test_plugin/src/Feeds/Parser/ParserWithMappingForm.php, line 44

Class

ParserWithMappingForm
Dummy parser to test integration with the Feeds mapping form.

Namespace

Drupal\feeds_test_plugin\Feeds\Parser

Code

public function getMappingSources() {
  return [];
}