You are here

public static function LiveWeather::buildBaseString in Live Weather 8.2

buildBaseString.

Overrides LiveWeatherInterface::buildBaseString

1 call to LiveWeather::buildBaseString()
LiveWeather::locationCheck in src/LiveWeather.php
Get location data.

File

src/LiveWeather.php, line 184
Contains \Drupal\live_weather\LiveWeather.

Class

LiveWeather
Live weather.

Namespace

Drupal\live_weather

Code

public static function buildBaseString($baseURI, $method, $params) {
  $r = array();
  ksort($params);
  foreach ($params as $key => $value) {
    $r[] = "{$key}=" . rawurlencode($value);
  }
  return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $r));
}