public function FeedType::getPluginCollections in Feeds 8.3
Gets the plugin collections used by this object.
Return value
\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.
Overrides ObjectWithPluginCollectionInterface::getPluginCollections
1 call to FeedType::getPluginCollections()
- FeedType::getPlugin in src/
Entity/ FeedType.php - Returns the configured plugin for this type given the plugin type.
File
- src/
Entity/ FeedType.php, line 529
Class
- FeedType
- Defines the Feeds feed type entity.
Namespace
Drupal\feeds\EntityCode
public function getPluginCollections() {
if (!isset($this->pluginCollection)) {
$this->pluginCollection = [];
foreach ($this->pluginTypes as $type) {
$this->pluginCollection[$type . '_configuration'] = new FeedsSingleLazyPluginCollection(\Drupal::service("plugin.manager.feeds.{$type}"), $this
->get($type), $this
->get($type . '_configuration'), $this);
}
}
return $this->pluginCollection;
}