You are here

public function HelperService::getDefaultConfig in Weather 8

Same name and namespace in other branches
  1. 2.0.x src/Service/HelperService.php \Drupal\weather\Service\HelperService::getDefaultConfig()

Returns default configuration for Displays.

1 call to HelperService::getDefaultConfig()
HelperService::getDisplayConfig in src/Service/HelperService.php
Return display configuration for a specific display.

File

src/Service/HelperService.php, line 91

Class

HelperService
HelperService service.

Namespace

Drupal\weather\Service

Code

public function getDefaultConfig() {
  return [
    'temperature' => 'celsius',
    'windspeed' => 'kmh',
    'pressure' => 'hpa',
    'distance' => 'kilometers',
    'show_sunrise_sunset' => FALSE,
    'show_windchill_temperature' => FALSE,
    'show_abbreviated_directions' => FALSE,
    'show_directions_degree' => FALSE,
  ];
}