You are here

public function BackgroundProcess::setOption in Background Process 7.2

Set callback options

File

./background_process.inc, line 469
External API short overview

Class

BackgroundProcess
@file

Code

public function setOption($key, $value) {
  $this
    ->logDebug(__FUNCTION__);
  $this
    ->ensureProcess();
  $this->options[$key] = $value;
  $this->options += self::defaultOptions();
  $this->dirty['options'] = serialize($this->options);
  return $this;
}