protected function ParserBase::getUniques in Feeds XPath Parser 8
Gets the unique mappings targets that are used by this parser.
Return value
array An array of mappings keyed source => target.
1 call to ParserBase::getUniques()
- ParserBase::baseForm in lib/
Drupal/ feeds_xpathparser/ ParserBase.php
File
- lib/
Drupal/ feeds_xpathparser/ ParserBase.php, line 532 - Contains \Drupal\feeds_xpathparser\ParserBase.
Class
- ParserBase
- Base class for the HTML and XML parsers.
Namespace
Drupal\feeds_xpathparserCode
protected function getUniques() {
$uniques = array();
$targets = $this->importer->processor
->getMappingTargets();
foreach ($this->importer->processor
->getMappings() as $mapping) {
if (!empty($mapping['unique'])) {
$uniques[$mapping['source']] = $targets[$mapping['target']]['name'];
}
}
return $uniques;
}