You are here

public function BrightcoveVideoQueueWorker::__construct in Brightcove Video Connect 8

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

Constructs a new BrightcoveVideoQueueWorker 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\Entity\EntityStorageInterface $storage: The storage object.

\Drupal\Core\Database\Connection $connection: Database connection.

\Drupal\Core\Queue\QueueInterface $text_track_queue: Text track queue object.

\Drupal\Core\Queue\QueueInterface $text_track_delete_queue: Text track delete queue object.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/BrightcoveVideoQueueWorker.php, line 71

Class

BrightcoveVideoQueueWorker
Processes Entity Update Tasks for Video.

Namespace

Drupal\brightcove\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $storage, Connection $connection, QueueInterface $text_track_queue, QueueInterface $text_track_delete_queue) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->storage = $storage;
  $this->connection = $connection;
  $this->textTrackQueue = $text_track_queue;
  $this->textTrackDeleteQueue = $text_track_delete_queue;
}