You are here

protected function JsonPathLinesParser::cleanUp in Feeds extensible parsers 8

Allows subclasses to cleanup after parsing.

Parameters

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

\Drupal\feeds\Result\ParserResultInterface $parser_result: The result of parsing.

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

Overrides JsonPathParser::cleanUp

File

src/Feeds/Parser/JsonPathLinesParser.php, line 81

Class

JsonPathLinesParser
Defines a JSON Lines parser using JSONPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function cleanUp(FeedInterface $feed, ParserResultInterface $result, StateInterface $state) {
  $state->pointer = $this->iterator
    ->ftell();
  unset($this->iterator);
  parent::cleanUp($feed, $result, $state);
}