You are here

public function FeedsQueueBatch::run in Feeds 8.3

Runs the batch.

Return value

$this An instance of this class.

Overrides FeedsBatchInterface::run

File

src/FeedsQueueBatch.php, line 39

Class

FeedsQueueBatch
A batch task for the queue API.

Namespace

Drupal\feeds

Code

public function run() {

  // Queue all operations now.
  foreach ($this->operations as $operation) {
    $this->queueFactory
      ->get('feeds_feed_refresh:' . $this->feed
      ->bundle())
      ->createItem([
      $this->feed,
      $operation['stage'],
      $operation['params'],
    ]);
  }
}