You are here

public function ContentHubImportQueueByFilter::__construct in Acquia Content Hub 8.2

ContentHubImportQueueByFilter constructor.

Parameters

\Drupal\Core\Queue\QueueFactory $queue_factory: Drupal Queue Factory.

\Drupal\Core\Queue\QueueWorkerManagerInterface $queue_worker_manager: Queue Worker manager.

File

modules/acquia_contenthub_subscriber/src/ContentHubImportQueueByFilter.php, line 41

Class

ContentHubImportQueueByFilter
Implements an Import Queue for entites based on custom filters.

Namespace

Drupal\acquia_contenthub_subscriber

Code

public function __construct(QueueFactory $queue_factory, QueueWorkerManagerInterface $queue_worker_manager) {
  $this->queueWorkerManager = $queue_worker_manager;
  $this->filterQueue = $queue_factory
    ->get('acquia_contenthub_import_from_filters');
}