You are here

protected function EntityQueueHandlerPluginCollection::initializePlugin in Entityqueue 8

Initializes and stores a plugin.

Parameters

string $instance_id: The ID of the plugin instance to initialize.

Overrides DefaultSingleLazyPluginCollection::initializePlugin

File

src/EntityQueueHandlerPluginCollection.php, line 50

Class

EntityQueueHandlerPluginCollection
Provides a container for lazily loading EntityQueueHandler plugins.

Namespace

Drupal\entityqueue

Code

protected function initializePlugin($instance_id) {
  parent::initializePlugin($instance_id);
  $this->pluginInstances[$instance_id]
    ->setQueue($this->queue);
}