You are here

public function ParserWithMappingForm::parse in Feeds 8.3

Parses content returned by fetcher.

@todo This needs more documentation.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed we are parsing for.

\Drupal\feeds\Result\FetcherResultInterface $fetcher_result: The result returned by the fetcher.

\Drupal\feeds\StateInterface $state: The state object.

Return value

\Drupal\feeds\Result\ParserResultInterface The parser result object.

Overrides ParserInterface::parse

File

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

Class

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

Namespace

Drupal\feeds_test_plugin\Feeds\Parser

Code

public function parse(FeedInterface $feed, FetcherResultInterface $fetcher_result, StateInterface $state) {
  return new ParserResult();
}