public function LiveWeatherController::__construct in Live Weather 8
Same name and namespace in other branches
- 8.2 src/Controller/LiveWeatherController.php \Drupal\live_weather\Controller\LiveWeatherController::__construct()
Constructs a location form object.
Parameters
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory holding resource settings.
File
- src/
Controller/ LiveWeatherController.php, line 43 - Contains \Drupal\live_weather\Controller\LiveWeatherController.
Class
- LiveWeatherController
- Controller for Live weather.
Namespace
Drupal\live_weather\ControllerCode
public function __construct(FormBuilderInterface $form_builder, ConfigFactoryInterface $config_factory) {
$this->formBuilder = $form_builder;
$this->configFactory = $config_factory;
}