You are here

public function FeedsSingleLazyPluginCollection::__construct in Feeds 8.3

Constructs a FeedsSingleLazyPluginCollection.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

string $instance_id: The ID of the plugin instance.

array $configuration: An array of configuration.

\Drupal\feeds\FeedTypeInterface $feed_type: The feed feed type this plugin belongs to.

Overrides DefaultSingleLazyPluginCollection::__construct

File

src/Feeds/FeedsSingleLazyPluginCollection.php, line 33

Class

FeedsSingleLazyPluginCollection
Provides a container for lazily loading Feeds plugins.

Namespace

Drupal\feeds\Feeds

Code

public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, FeedTypeInterface $feed_type) {

  // Sneak the feed type in via configuration.
  // @todo Remove this once plugins don't need the type.
  $this->feedType = $feed_type;
  $configuration['feed_type'] = $feed_type;
  parent::__construct($manager, $instance_id, $configuration);
}