You are here

public function BackgroundProcess::ensureServiceHost in Background Process 7.2

Make sure that the process has been designated a service host.

1 call to BackgroundProcess::ensureServiceHost()
BackgroundProcess::dispatch in ./background_process.inc
Launch the process

File

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

Class

BackgroundProcess
@file

Code

public function ensureServiceHost() {
  if (!$this->service_host) {
    $this
      ->setServiceGroup();
    $this
      ->writeData();
  }
  return $this;
}