You are here

public function WeatherHourlyBlock::__construct in Wunderground weather 8

WeatherHourlyBlock constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\wunderground_weather\WundergroundWeatherManager $wunderground_weather_manager: Methods to make an API call and tool to handle the output.

Overrides BlockPluginTrait::__construct

File

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

Class

WeatherHourlyBlock
Provides a with an hourly weather forecast.

Namespace

Drupal\wunderground_weather\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, WundergroundWeatherManager $wunderground_weather_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->wundergroundWeatherManager = $wunderground_weather_manager;
}