protected function FeedsExBase::prepareVariables in Feeds extensible parsers 7.2
Same name and namespace in other branches
- 7 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.
1 call to FeedsExBase::prepareVariables()
- FeedsExBase::delegateParsing in src/
FeedsExBase.inc - Delegates parsing to the subclass.
File
- src/
FeedsExBase.inc, line 283 - 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;
}