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\feedsCode
protected function createBatch(FeedInterface $feed, $stage) {
return new FeedsBatchBatch($this, $feed, $stage);
}