You are here

protected function WeatherHourlyBlock::getConditions in Wunderground weather 8

Get the weather conditions for a specific hour.

Parameters

\stdClass $hour: The hour for that holds the condition variable.

Return value

string A string representing a weather condition.

File

src/Plugin/Block/WeatherHourlyBlock.php, line 273
Contains \Drupal\wunderground_weather\Plugin\Block\WeatherHourlyBlock.

Class

WeatherHourlyBlock
Provides a with an hourly weather forecast.

Namespace

Drupal\wunderground_weather\Plugin\Block

Code

protected function getConditions(\stdClass $hour) {
  return $hour->condition;
}