public function FeedsJSONPathParser::getMappingSources in Feeds JSONPath Parser 6
Same name and namespace in other branches
- 7 FeedsJSONPathParser.inc \FeedsJSONPathParser::getMappingSources()
Override parent::getMappingSources().
Overrides FeedsParser::getMappingSources
File
- ./
FeedsJSONPathParser.inc, line 220 - Provides the Class for Feeds JSONPath Parser.
Class
- FeedsJSONPathParser
- Base class for the HTML and XML parsers.
Code
public function getMappingSources() {
$mappings = $this
->filterMappings(feeds_importer($this->id)->processor->config['mappings']);
$next = 0;
if (!empty($mappings)) {
$last_mapping = end(array_keys($mappings));
$next = explode(':', $last_mapping);
$next = $next[1] + 1;
}
return array(
'jsonpath_parser:' . $next => array(
'name' => t('JSONPath Expression'),
'description' => t('Allows you to configure n JSONPath expression that will populate this field.'),
),
) + parent::getMappingSources();
}