You are here

protected function FeedsQueueExecutable::createBatch in Feeds 8.3

Creates a new batch object.

Parameters

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

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

Return value

\Drupal\feeds\FeedsBatchInterface A feeds batch object.

Overrides FeedsExecutable::createBatch

File

src/FeedsQueueExecutable.php, line 60

Class

FeedsQueueExecutable
Import feeds using the queue API.

Namespace

Drupal\feeds

Code

protected function createBatch(FeedInterface $feed, $stage) {
  return new FeedsQueueBatch($this, $feed, $stage, $this->queueFactory);
}