You are here

public function LiveWeatherForm::__construct in Live Weather 8

Same name and namespace in other branches
  1. 8.2 src/Form/LiveWeatherForm.php \Drupal\live_weather\Form\LiveWeatherForm::__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 ConfigFormBase::__construct

File

src/Form/LiveWeatherForm.php, line 41
Contains \Drupal\live_weather\Form\LiveWeatherForm.

Class

LiveWeatherForm
Controller location for Live Weather Form.

Namespace

Drupal\live_weather\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, LiveWeatherInterface $live_weather) {
  $this->configFactory = $config_factory;
  $this->liveWeather = $live_weather;
}