You are here

protected function FeedsExJsonPath::validateExpression in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 src/FeedsExJsonPath.inc \FeedsExJsonPath::validateExpression()

Validates an expression.

Parameters

string &$expression: The expression to validate.

Return value

string|null Return the error string, or null if validation was passed.

Overrides FeedsExBase::validateExpression

File

src/FeedsExJsonPath.inc, line 66
Contains FeedsExJsonPath.

Class

FeedsExJsonPath
Parses JSON via JSONPath.

Code

protected function validateExpression(&$expression) {
  $expression = trim($expression);
}