FeedsBatchExecutable.php in Feeds 8.3
File
src/FeedsBatchExecutable.php
View source
<?php
namespace Drupal\feeds;
use Drupal\feeds\Result\FetcherResultInterface;
class FeedsBatchExecutable extends FeedsExecutable {
protected function createBatch(FeedInterface $feed, $stage) {
return new FeedsBatchBatch($this, $feed, $stage);
}
protected function finish(FeedInterface $feed, FetcherResultInterface $fetcher_result) {
$result = parent::finish($feed, $fetcher_result);
if ($result) {
$feed
->startBatchExpire();
}
}
}