public function WeatherCurrentBlock::__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/ WeatherCurrentBlock.php, line 45 - Contains \Drupal\wunderground_weather\Plugin\Block\WeatherCurrentBlock.
Class
- WeatherCurrentBlock
- Provides a block with current weather conditions.
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;
}