public function LiveWeatherBlock::__construct in Live Weather 8.2
Same name and namespace in other branches
- 8 src/Plugin/Block/LiveWeatherBlock.php \Drupal\live_weather\Plugin\Block\LiveWeatherBlock::__construct()
Constructs a location form object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory holding resource settings.
Drupal\live_weather\LiveWeatherInterface $live_weather: The controls of Live weather.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ LiveWeatherBlock.php, line 49 - Contains \Drupal\live_weather\Plugin\Block\LiveWeatherBlock.
Class
- LiveWeatherBlock
- Provides a 'Live Weather' block.
Namespace
Drupal\live_weather\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, LiveWeatherInterface $live_weather) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $config_factory;
$this->liveWeather = $live_weather;
}