You are here

protected function FeedsExecutable::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.

2 calls to FeedsExecutable::createBatch()
FeedsExecutable::doParse in src/FeedsExecutable.php
Parses.
FeedsExecutable::finish in src/FeedsExecutable.php
Finalizes the import.
2 methods override FeedsExecutable::createBatch()
FeedsBatchExecutable::createBatch in src/FeedsBatchExecutable.php
Creates a new batch object.
FeedsQueueExecutable::createBatch in src/FeedsQueueExecutable.php
Creates a new batch object.

File

src/FeedsExecutable.php, line 144

Class

FeedsExecutable
Defines a feeds executable class.

Namespace

Drupal\feeds

Code

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