You are here

protected function QueryPathHtmlParser::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 XmlParser::setUp

File

src/Feeds/Parser/QueryPathHtmlParser.php, line 32

Class

QueryPathHtmlParser
Defines a HTML parser using QueryPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function setUp(FeedInterface $feed, FetcherResultInterface $fetcher_result, StateInterface $state) {

  // Change some parser settings.
  $this->queryPathOptions['use_parser'] = 'html';
}