You are here

protected function XmlParser::setUp in Feeds extensible parsers 8

Allows subclasses to prepare for parsing.

Parameters

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

\Drupal\feeds\Result\FetcherResultInterface $fetcher_result: The result of the fetching stage.

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

Overrides ParserBase::setUp

1 method overrides XmlParser::setUp()
QueryPathHtmlParser::setUp in src/Feeds/Parser/QueryPathHtmlParser.php
Allows subclasses to prepare for parsing.

File

src/Feeds/Parser/XmlParser.php, line 99

Class

XmlParser
Defines a XML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function setUp(FeedInterface $feed, FetcherResultInterface $fetcher_result, StateInterface $state) {
  $document = $this
    ->prepareDocument($feed, $fetcher_result);
  $this->xpath = new XpathDomXpath($document);
}