You are here

public static function WundergroundWeatherManager::getIconUrl in Wunderground weather 8

Transform the url to user an other icon set.

Parameters

string $set: The letter to identify an icon set.

string $icon: The name of the icon.

Return value

string Url of the selected icon set.

1 call to WundergroundWeatherManager::getIconUrl()
WundergroundWeatherManager::getIconSetSample in src/WundergroundWeatherManager.php
Get a sample of icons of a icon set.

File

src/WundergroundWeatherManager.php, line 83
Contains Drupal\wunderground_weather\WundergroundWeatherManager.

Class

WundergroundWeatherManager
Methods to make an API call and tool to handle the output.

Namespace

Drupal\wunderground_weather

Code

public static function getIconUrl($set, $icon) {
  $path = drupal_get_path('module', 'wunderground_weather');
  return $path . '/icons/' . $set . '/' . $icon . '.gif';
}