You are here

public function ParserInterface::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.

5 methods override ParserInterface::getMappingSources()
CsvParser::getMappingSources in src/Feeds/Parser/CsvParser.php
Declare the possible mapping sources that this parser produces.
OpmlParser::getMappingSources in src/Feeds/Parser/OpmlParser.php
Declare the possible mapping sources that this parser produces.
ParserWithMappingForm::getMappingSources in tests/modules/feeds_test_plugin/src/Feeds/Parser/ParserWithMappingForm.php
Declare the possible mapping sources that this parser produces.
SitemapParser::getMappingSources in src/Feeds/Parser/SitemapParser.php
Declare the possible mapping sources that this parser produces.
SyndicationParser::getMappingSources in src/Feeds/Parser/SyndicationParser.php
Declare the possible mapping sources that this parser produces.

File

src/Plugin/Type/Parser/ParserInterface.php, line 44

Class

ParserInterface
The interface Feeds parser must implement.

Namespace

Drupal\feeds\Plugin\Type\Parser

Code

public function getMappingSources();