You are here

protected function WeatherHourlyBlock::getAvailableFields in Wunderground weather 8

An array of available fields to display.

Return value

array An array of available fields.

2 calls to WeatherHourlyBlock::getAvailableFields()
WeatherHourlyBlock::blockForm in src/Plugin/Block/WeatherHourlyBlock.php
WeatherHourlyBlock::build in src/Plugin/Block/WeatherHourlyBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/WeatherHourlyBlock.php, line 233
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 getAvailableFields() {
  return [
    'image' => t('Weather icons'),
    'conditions' => t('Weather description'),
    'temperature' => t('Temperature'),
    'rain' => t('Chance of rain'),
    'wind' => t('Wind speed'),
  ];
}