protected function JsonPathParser::loadLibrary in Feeds extensible parsers 8
Loads the necessary library.
Subclasses can override this to load the necessary library. It will be called automatically.
Throws
\RuntimeException Thrown if the library does not exist.
Overrides ParserBase::loadLibrary
File
- src/
Feeds/ Parser/ JsonPathParser.php, line 123
Class
- JsonPathParser
- Defines a JSON parser using JSONPath.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
protected function loadLibrary() {
if (!class_exists('Flow\\JSONPath\\JSONPath')) {
throw new RuntimeException($this
->t('The JSONPath library is not installed.'));
}
}