You are here

function background_process_get_service_hosts in Background Process 8

Same name and namespace in other branches
  1. 6 background_process.module \background_process_get_service_hosts()
  2. 7.2 background_process.module \background_process_get_service_hosts()
  3. 7 background_process.module \background_process_get_service_hosts()

Get service hosts defined in the system.

5 calls to background_process_get_service_hosts()
BackgroundProcess::determineServiceHost in ./background_process.class.php
Implements Function to Determine Service Host.
BackgroundProcessSettingsForm::buildForm in src/Form/BackgroundProcessSettingsForm.php
Implements to Build Form.
background_process_ass_auto_unlock in background_process_ass/background_process_ass.module
Implements to Unlock locked processes that aren't really running.
background_process_build_request in ./background_process.module
Implements to Build url and headers for http request.
background_process_settings_form in ./background_process.admin.inc
Implements definition for settings page.

File

./background_process.module, line 1397
This module implements a framework for calling funtions in the background.

Code

function background_process_get_service_hosts() {
  global $base_url;
  $service_hosts = \Drupal::config('background_process.settings')
    ->get('background_process_service_hosts');
  $service_hosts += \Drupal::config('background_process.settings')
    ->get('background_process_derived_default_host');
  return $service_hosts;
}