public function WeatherForecastBlock::__construct in Wunderground weather 8
WeatherCurrentBlock 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/ WeatherForecastBlock.php, line 44 - Contains \Drupal\wunderground_weather\Plugin\Block\WeatherForecastBlock.
Class
- WeatherForecastBlock
- Provides a with a five day weather forecast.
Namespace
Drupal\wunderground_weather\Plugin\BlockCode
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;
}