You are here

protected function JsonParserBase::startErrorHandling in Feeds extensible parsers 8

Starts internal error handling.

Subclasses can override this to being error handling.

Overrides ParserBase::startErrorHandling

File

src/Feeds/Parser/JsonParserBase.php, line 53

Class

JsonParserBase
Base class for JSON based parsers.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function startErrorHandling() {

  // Clear the json errors from previous parsing.
  json_decode('{}');
}