protected function JsonPathParser::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 JsonPathParser::cleanUp()
- JsonPathLinesParser::cleanUp in src/
Feeds/ Parser/ JsonPathLinesParser.php - Allows subclasses to cleanup after parsing.
1 method overrides JsonPathParser::cleanUp()
- JsonPathLinesParser::cleanUp in src/
Feeds/ Parser/ JsonPathLinesParser.php - Allows subclasses to cleanup after parsing.
File
- src/
Feeds/ Parser/ JsonPathParser.php, line 45
Class
- JsonPathParser
- Defines a JSON parser using JSONPath.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
protected function cleanUp(FeedInterface $feed, ParserResultInterface $result, StateInterface $state) {
// Calculate progress.
$state
->progress($state->total, $state->pointer);
}