protected function JmesPathLinesParser::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 JmesPathParser::cleanUp
File
- src/
Feeds/ Parser/ JmesPathLinesParser.php, line 84
Class
- JmesPathLinesParser
- Defines a JSON Lines parser using JMESPath.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
protected function cleanUp(FeedInterface $feed, ParserResultInterface $result, StateInterface $state) {
$state->pointer = $this->iterator
->ftell();
unset($this->iterator);
parent::cleanUp($feed, $result, $state);
}