public function FeedType::getMappingSources in Feeds 8.3
Returns the mapping sources for this feed type.
Return value
array An array of mapping sources.
Overrides FeedTypeInterface::getMappingSources
1 call to FeedType::getMappingSources()
- FeedType::getSourcePlugin in src/
Entity/ FeedType.php - @todo Use plugin bag.
File
- src/
Entity/ FeedType.php, line 279
Class
- FeedType
- Defines the Feeds feed type entity.
Namespace
Drupal\feeds\EntityCode
public function getMappingSources() {
if ($this->sources === NULL) {
$this->sources = $this
->getParser()
->getMappingSources();
$definitions = $this
->getSourcePluginManager()
->getDefinitions();
foreach ($definitions as $definition) {
$class = $definition['class'];
$class::sources($this->sources, $this, $definition);
}
$this
->alter('feeds_sources', $this->sources);
}
return $this->sources + $this->custom_sources;
}