protected function JmesPathParser::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 ParserBase::cleanUp
1 call to JmesPathParser::cleanUp()
- JmesPathLinesParser::cleanUp in src/
Feeds/ Parser/ JmesPathLinesParser.php - Allows subclasses to cleanup after parsing.
1 method overrides JmesPathParser::cleanUp()
- JmesPathLinesParser::cleanUp in src/
Feeds/ Parser/ JmesPathLinesParser.php - Allows subclasses to cleanup after parsing.
File
- src/
Feeds/ Parser/ JmesPathParser.php, line 118
Class
- JmesPathParser
- Defines a JSON parser using JMESPath.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
protected function cleanUp(FeedInterface $feed, ParserResultInterface $result, StateInterface $state) {
// @todo Verify if this is necessary. Not sure if the runtime keeps a
// reference to the input data.
unset($this->runtime);
// Calculate progress.
$state
->progress($state->total, $state->pointer);
}