You are here

public function BrightcoveSubscriptionsQueueWorker::__construct in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/QueueWorker/BrightcoveSubscriptionsQueueWorker.php \Drupal\brightcove\Plugin\QueueWorker\BrightcoveSubscriptionsQueueWorker::__construct()
  2. 3.x src/Plugin/QueueWorker/BrightcoveSubscriptionsQueueWorker.php \Drupal\brightcove\Plugin\QueueWorker\BrightcoveSubscriptionsQueueWorker::__construct()

Constructs a new BrightcoveSubscriptionQueueWorker object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Queue\QueueInterface $subscription_queue: The brightcove_subscription queue.

\Drupal\Core\Queue\QueueInterface $subscription_delete_queue: The brightcove_delete_subscription queue.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/BrightcoveSubscriptionsQueueWorker.php, line 52

Class

BrightcoveSubscriptionsQueueWorker
Gathers the subscriptions for creation and delete check.

Namespace

Drupal\brightcove\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, QueueInterface $subscription_queue, QueueInterface $subscription_delete_queue) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->subscriptionQueue = $subscription_queue;
  $this->subscriptionDeleteQueue = $subscription_delete_queue;
}