You are here

public function BackendPluginCollection::__construct in Advanced Queue 8

Constructs a new BackendPluginCollection object.

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.

string $entity_id: The entity ID this plugin collection belongs to.

Overrides DefaultSingleLazyPluginCollection::__construct

File

src/BackendPluginCollection.php, line 33

Class

BackendPluginCollection
Stores a single backend plugin, aware of its parent entity ID.

Namespace

Drupal\advancedqueue

Code

public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, $entity_id) {
  $this->entityId = $entity_id;

  // The parent constructor initializes the plugin, so it needs to be called
  // after $this->entityId is set.
  parent::__construct($manager, $instance_id, $configuration);
}