You are here

public function BackgroundBatchContext::setInterval in Background Process 7

Same name and namespace in other branches
  1. 6 background_batch/background_batch.module \BackgroundBatchContext::setInterval()

Set progress update interval in seconds (float).

File

background_batch/background_batch.module, line 331
This module adds background processing to Drupals batch API

Class

BackgroundBatchContext
Class batch context. Automatically updates progress when 'finished' index is changed.

Code

public function setInterval($interval) {
  $this->interval = $interval;
}