You are here

public function FeedsQueueBatch::__construct in Feeds 8.3

Constructs a new FeedsQueueBatch object.

Parameters

\Drupal\feeds\FeedsExecutableInterface $executable: The Feeds executable.

\Drupal\feeds\FeedInterface $feed: The feed to run a batch for.

string $stage: The stage of the batch to run.

\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.

Overrides FeedsBatchBase::__construct

File

src/FeedsQueueBatch.php, line 31

Class

FeedsQueueBatch
A batch task for the queue API.

Namespace

Drupal\feeds

Code

public function __construct(FeedsExecutableInterface $executable, FeedInterface $feed, $stage, QueueFactory $queue_factory) {
  parent::__construct($executable, $feed, $stage);
  $this->queueFactory = $queue_factory;
}