protected function WeatherHourlyBlock::getRain in Wunderground weather 8
Get the change of rain.
Parameters
\stdClass $hour: The hour for that holds the pop variable.
Return value
string The change of rain for a specific hour.
File
- src/
Plugin/ Block/ WeatherHourlyBlock.php, line 301 - Contains \Drupal\wunderground_weather\Plugin\Block\WeatherHourlyBlock.
Class
- WeatherHourlyBlock
- Provides a with an hourly weather forecast.
Namespace
Drupal\wunderground_weather\Plugin\BlockCode
protected function getRain(\stdClass $hour) {
return $hour->pop . '%';
}