protected function FeedsExBase::prepareVariables in Feeds extensible parsers 7
Same name and namespace in other branches
- 7.2 src/FeedsExBase.inc \FeedsExBase::prepareVariables()
Prepares the variable map used to substitution.
Parameters
array $expressions: The expressions being parsed.
Return value
array A map of machine name to variable name.
3 calls to FeedsExBase::prepareVariables()
- FeedsExBase::parseItems in src/
FeedsExBase.inc - Performs the actual parsing.
- FeedsExJmesPathLines::parseItems in src/
FeedsExJmesPathLines.inc - Performs the actual parsing.
- FeedsExJsonPathLines::parseItems in src/
FeedsExJsonPathLines.inc - Performs the actual parsing.
File
- src/
FeedsExBase.inc, line 266 - Contains FeedsExBase.
Class
- FeedsExBase
- The Feeds extensible parser.
Code
protected function prepareVariables(array $expressions) {
$variable_map = array();
foreach ($expressions as $machine_name => $expression) {
$variable_map[$machine_name] = '$' . $machine_name;
}
return $variable_map;
}