You are here

protected function FeedsBatchExecutable::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/FeedsBatchExecutable.php, line 15

Class

FeedsBatchExecutable
Import feeds using the batch API.

Namespace

Drupal\feeds

Code

protected function createBatch(FeedInterface $feed, $stage) {
  return new FeedsBatchBatch($this, $feed, $stage);
}