You are here

public function BackgroundProcess::__construct in Background Process 8

Same name and namespace in other branches
  1. 6 BackgroundProcess.class.php \BackgroundProcess::__construct()
  2. 7.2 background_process.inc \BackgroundProcess::__construct()
  3. 7 BackgroundProcess.class.php \BackgroundProcess::__construct()

Implements Constructor.

File

./background_process.class.php, line 34

Class

BackgroundProcess
BackgroundProcess class.

Code

public function __construct($handle = NULL) {
  $this->handle = $handle ? $handle : background_process_generate_handle('auto');
  $this->token = background_process_generate_handle('token');
  $this->serviceGroup = \Drupal::config('background_process.settings')
    ->get('background_process_default_service_group');
}